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

custom http transport #585

Closed
wants to merge 3 commits into from
Closed

custom http transport #585

wants to merge 3 commits into from

Conversation

bundleman
Copy link
Contributor

@bundleman bundleman commented Jan 21, 2021

I added option WithCustomTransport for http driver and did refactoring code which create pester.Client.

Added WithCustomTransport was necessary for control flag InsecureSkipVerify in section TLSClientConfig inside http.Transport.

@ziflex
Copy link
Member

ziflex commented Jan 21, 2021

Looks great! It def might be useful in certain scenarios.

Could you please fix the following linting issues

pkg/drivers/http/driver.go
  (37, 6)  https://revive.run/r#var-naming  func newHttpClient should be newHTTPClient  

pkg/drivers/http/options.go
  (23, 3)  https://revive.run/r#var-naming  struct field HttpTransport should be HTTPTransport  


 ✖ 2 problems (2 errors) (0 warnings)

@bundleman
Copy link
Contributor Author

Looks great! It def might be useful in certain scenarios.

Could you please fix the following linting issues

pkg/drivers/http/driver.go
  (37, 6)  https://revive.run/r#var-naming  func newHttpClient should be newHTTPClient  

pkg/drivers/http/options.go
  (23, 3)  https://revive.run/r#var-naming  struct field HttpTransport should be HTTPTransport  


 ✖ 2 problems (2 errors) (0 warnings)

ok

@bundleman bundleman closed this Jan 22, 2021
@bundleman bundleman mentioned this pull request Jan 22, 2021
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

Successfully merging this pull request may close these issues.

2 participants