Skip to content

Conversation

FayCarsons
Copy link
Contributor

I think I got this all worked out now that I'm using types from the http crate, and using return-position impls in trait methods vs the async keyword to enforce Send return types, but I figured I'd still put it up here.

Not sure that Bytes is the right type to bound request and response bodies by. For instance, String does not impl From<Bytes> so it's sort of a pain to get the text out of a response. The Arc overhead is less than ideal as well. Same with the error handling, we have a Box<dyn Error> which I think is generally suboptimal.

But it is, at the very least, typechecking for the anthropic provider

@joshua-mo-143 joshua-mo-143 linked an issue Sep 29, 2025 that may be closed by this pull request
1 task
@FayCarsons FayCarsons marked this pull request as ready for review October 6, 2025 21:31
@@ -0,0 +1,203 @@
use crate::{
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this file needed? seems to be an old artifact from the chatbot PR

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Didn't catch that, will remove

@joshua-mo-143 joshua-mo-143 merged commit c4706e7 into 0xPlaygrounds:main Oct 10, 2025
5 checks passed
@github-actions github-actions bot mentioned this pull request Oct 7, 2025
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.

feat: generic HTTP client

2 participants