Skip to content

Conversation

@niclas-ahden
Copy link
Contributor

Using UTF-8 strings for the request bodies is probably a remnant from times past. The bodies are raw bytes on the Roc-side and here we align with that. This enables requests like file uploads etc. which aren't UTF-8 strings.

Using UTF-8 strings for the request bodies is probably a remnant from
times past. The bodies are raw bytes on the Roc-side and here we align
with that. This enables requests like file uploads etc. which aren't
UTF-8 strings.
Copy link
Collaborator

@Anton-4 Anton-4 left a comment

Choose a reason for hiding this comment

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

Looks good, thanks @niclas-ahden :)

@Anton-4 Anton-4 merged commit 62363cd into roc-lang:main Apr 4, 2025
7 checks passed
niclas-ahden added a commit to niclas-ahden/basic-webserver that referenced this pull request Apr 4, 2025
See: roc-lang/basic-cli#343

I needed to pull in the `roc_http` changes above and opted to update all
crates as the dependencies are reasonably constrained in `Cargo.toml`.
Anton-4 pushed a commit to roc-lang/basic-webserver that referenced this pull request Apr 4, 2025
See: roc-lang/basic-cli#343

I needed to pull in the `roc_http` changes above and opted to update all
crates as the dependencies are reasonably constrained in `Cargo.toml`.
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