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 send_bits #9

Merged
merged 3 commits into from
Apr 22, 2024
Merged

implement send_bits #9

merged 3 commits into from
Apr 22, 2024

Conversation

CrowdHailer
Copy link
Contributor

I couldn't really what to do regarding tests, so I haven't added any.
Might be helpful to add doc links to the actual services used.

Please feel free to run with this. I'm using it locally and don't have strong opinions on naming

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you

};
if (method !== "GET" && method !== "HEAD") options.body = request.body.buffer;
return new globalThis.Request(url, options);
}
Copy link
Member

Choose a reason for hiding this comment

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

All the code here except .buffer is the same as the other function, let's extract that into one function.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This looks better now

Copy link
Member

@lpil lpil left a comment

Choose a reason for hiding this comment

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

Thank you

@lpil lpil merged commit 92d5f83 into gleam-lang:main Apr 22, 2024
1 check passed
@CrowdHailer CrowdHailer deleted the send-bits branch April 23, 2024 06:43
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