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

Implement HTTP request adapter #20

Merged
merged 25 commits into from
Apr 8, 2024
Merged

Implement HTTP request adapter #20

merged 25 commits into from
Apr 8, 2024

Conversation

ricardoboss
Copy link
Member

@ricardoboss ricardoboss commented Mar 31, 2024

Fixes #19.

I used https://github.com/microsoft/kiota-http-dotnet as inspiration :D

For now, I have skipped all the middleware because I am not sure how to achieve that with Dart's HTTP library. Also I want to add tests, but that shouldn't block this PR.

@ricardoboss ricardoboss force-pushed the issues/19-http-adapter branch from dff6be9 to ca99136 Compare April 4, 2024 01:42
@ricardoboss
Copy link
Member Author

I am not sure what RetryCAEResponseIfRequired in the C# implementation does. Seemingly it retries the request with a value received from the WWW-Authenticate header. Maybe we should also implement that, but I'd need some guidance there.

@ricardoboss
Copy link
Member Author

Looks like adding middleware can be done in a similar way as its done with the dotnet client: just wrap the client in delegating clients.

I'll work on this branch a bit more and mark this PR as draft for now.

@ricardoboss ricardoboss marked this pull request as draft April 4, 2024 02:01
@ricardoboss ricardoboss marked this pull request as ready for review April 7, 2024 13:57
@ricardoboss ricardoboss force-pushed the issues/19-http-adapter branch from 1b94a27 to 01b4782 Compare April 7, 2024 13:58
@ricardoboss ricardoboss merged commit 192b681 into main Apr 8, 2024
2 checks passed
@ricardoboss ricardoboss deleted the issues/19-http-adapter branch April 8, 2024 09:16
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.

kiota_http: HTTP request adapter
2 participants