Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

response url convienience function #49

Open
dmvinson opened this issue Mar 28, 2017 · 0 comments
Open

response url convienience function #49

dmvinson opened this issue Mar 28, 2017 · 0 comments
Milestone

Comments

@dmvinson
Copy link

Hi, could you add a URL function to the Response struct, struggled with figuring out how to access final URL after series of redirect at first.

func (r *Response) URL() string {
return r.RawResponse.URL.String()
}

This would provide a much more obvious and simple way of accessing that final URL.

@levigross levigross added this to the 1.0 milestone Oct 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants