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

Serializing numbers #201

Open
jakearchibald opened this Issue May 17, 2018 · 2 comments

Comments

2 participants
@jakearchibald
Contributor

jakearchibald commented May 17, 2018

https://url.spec.whatwg.org/#serialize-an-integer - I'm going to do something similar to this in the Fetch spec, for adding numbers to a header.

Feels like something infra should take care of.

It might become part of #193.

@annevk

This comment has been minimized.

Member

annevk commented May 18, 2018

Thanks for opening a tracking issue. The URL and Fetch case are slightly different as URL wants a string and Fetch wants a byte sequence.

This should be easier to fix once we have #87 in place.

@jakearchibald

This comment has been minimized.

Contributor

jakearchibald commented May 18, 2018

In Fetch I'm treating it as if it returns a string, since that's what I imagine we'll end up with. UTF-8 encoding turns the string into a byte sequence.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment