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

Usage with gock or httpmock #93

Closed
raine opened this issue Feb 25, 2022 · 1 comment
Closed

Usage with gock or httpmock #93

raine opened this issue Feb 25, 2022 · 1 comment

Comments

@raine
Copy link

raine commented Feb 25, 2022

Could this be used with gock or httpmock if http.Client was exposed?

req/client.go

Line 60 in addfc5e

httpClient *http.Client

https://github.com/jarcoal/httpmock#ginkgo--resty-example

httpmock.ActivateNonDefault(resty.DefaultClient.GetClient())

resty exposes http.Client so it can be used with httpmock.

@imroc
Copy link
Owner

imroc commented Feb 26, 2022

Good idea, the http.Client is exposed now (v3.8.0).

@imroc imroc closed this as completed Feb 26, 2022
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

2 participants