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

Add httpx: low memory, non-allocating http implementation #13

Merged
merged 6 commits into from
Dec 31, 2023
Merged

Conversation

soypat
Copy link
Owner

@soypat soypat commented Dec 29, 2023

Inspired entirely by the excellent fasthttp library: https://github.com/valyala/fasthttp/blob/master/header.go

Some notable changes to the base fasthttp library:

  • Reduce stack usage by changing most internal []byte usage to string
  • Trying to go for a single header type that condenses most HTTP logic, including response and requests
  • Trying best to reduce the resulting size of program whenever possible
  • Change some logic that allocates in TinyGo but does not in upstream Go

Still learning a lot about http while writing this, most likely will change.

Copy link

codecov bot commented Dec 29, 2023

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

@soypat soypat merged commit 289e517 into main Dec 31, 2023
1 of 3 checks passed
@soypat soypat deleted the httpx branch December 31, 2023 16:23
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.

1 participant