HTTP client: Add last effective URI of redirected requests to response

Open
#388 8 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
php
Domain
networking

Research direction

Start by reviewing the HTTP client’s redirect handling and how the final request URI is currently retained. Read the linked ReactPHP Buzz and Guzzle discussions for context, then determine an approach that exposes the last effective URI without modifying PSR ResponseInterface. Done means callers can retrieve the final URI after redirects through a clear library API.

Written by the indexing model from the issue text.

Description

help wanted new feature

Hello, i am trying to get the last URI in a redirect sequence, this uri is available in the request object but there is no way to getting out at the moment in a easy way.

To give context i will try to point the times that this problem has been mentioned:

I wonder what approach to take in this library, i dont think is clever to modify the Psr ResponseInterface, so i am open to suggestions, thanks great code 👍

Dominant language
PHP
Stars
781
Forks
166
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from reactphp/http

All issues in reactphp/http

Similar issues

More PHP issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.