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

Is it possible to get access to the request in the callback method? #249

Closed
georgeu2000 opened this issue Jan 24, 2013 · 2 comments
Closed

Comments

@georgeu2000
Copy link
Contributor

WebMock.after_request do |request_signature, response| works fine, but I would like to access the request url instead of the signature.

Is it possible to do this?

@gameboxed
Copy link

No, currently it's not possible, but it was requested in another github issue and I'm trying to figure out how to add it.

The problem is that different client libraries keep urls in different data structures. I.e. whole url as a string, or just host and path as a string and params in a hash or array and I don't have access to the full url string. Request signature is currently the only unified structure that holds full url.

@davidbegin
Copy link
Collaborator

Thank you for submitting, However, I am closing this because of time elapsed. If it is still something you'd like to see in webmock, please feel free to open an new issue or submit a Pull Request.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants