[whatwg/encoding] Add get an encoder and encode or fail for URLs (#238)

Please excuse the branch name. The first commit is #237 and I will rebase this once @andreubotella has looked at that.

I suspect some changes might be needed here around my IO queue usage. In particular, in this scenario we probably do want to push end-of-queue upon encountering an error, to make conversion to bytes easier for the caller.


<!--
    This comment and the below content is programatically generated.
    You may add a comma-separated list of anchors you'd like a
    direct link to below (e.g. #idl-serializers, #idl-sequence):

    Don't remove this comment or modify anything below this line.
    If you don't want a preview generated for this pull request,
    just replace the whole of this comment's content by "no preview"
    and remove what's below.
-->
***
<a href="https://whatpr.org/encoding/238.html" title="Last updated on Oct 21, 2020, 11:02 AM UTC (46594d4)">Preview</a> | <a href="https://whatpr.org/encoding/238/a5e3e11...46594d4.html" title="Last updated on Oct 21, 2020, 11:02 AM UTC (46594d4)">Diff</a>
You can view, comment on, or merge this pull request online at:

  https://github.com/whatwg/encoding/pull/238

-- Commit Summary --

  * Reorganize hooks for standards
  * Add get an encoder and encode or fail for URLs

-- File Changes --

    M encoding.bs (193)

-- Patch Links --

https://github.com/whatwg/encoding/pull/238.patch
https://github.com/whatwg/encoding/pull/238.diff

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/encoding/pull/238

Received on Wednesday, 21 October 2020 11:02:28 UTC