Skip to content

Conversation

@baywet
Copy link
Member

@baywet baywet commented Feb 5, 2021

This pull requests unties the interfaces and domain requests from the native http client request types. Allowing customers who'd like to do so to use their own native client while keeping authentication handlers, serialization, generated types and more.

  • generic IHttpRequest
  • linting
  • adds missing javadoc comments
  • adds missing nullability annotations

fixes #113
fixes #106

@tbelaire
Copy link
Contributor

tbelaire commented Feb 5, 2021

This looks good.

Just a though, did you consider having a IRequest interface which captures what you need from the request? This might not work if you need to pass exactly a okhttp3 request somewhere.

Oh, but you wouldn't be able to implement that interface on the okhttp3 request....

Yeah this approach is fine.

@baywet baywet changed the base branch from feature/lean-batches to feature/v2 February 8, 2021 13:51
@baywet baywet merged commit 9bfbcbd into feature/v2 Feb 10, 2021
@baywet baywet deleted the feature/generic-request branch February 10, 2021 13:46
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.

Custom HTTP client IHttpProvider should not contain an implementation specific type and should be generic instead

4 participants