Skip to content

How to get response headers on redirect? #298

@icamys

Description

@icamys

Hi! First of all I would like to thank you for this wonderful project!

Here's the question: is there any way to get the response headers coming along with redirect response from server?

In sources I see that I can control redirects using RedirectHandler. However this callback has only two parameters: req *http.Request, via []*http.Request. From here I can not get headers received from server that are coming with 301 code. Are there any hidden options to get those headers?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions