• Johan Brandhorst's avatar
    net/http: support configuring fetch options · 4fc7b93a
    Johan Brandhorst authored
    The default WASM RoundTripper is implemented using
    the browser Fetch API. Some options don't readily map to
    existing http.Request options, so we use the precedent
    set by the TrailerPrefix constant to allow a user to configure
    the "mode" and "credentials" options by supplying them
    as headers in the http.Request.
    
    Updates #26769
    
    Change-Id: If42d24418c4ffb17211f57e36708cf460fb4c579
    GitHub-Last-Rev: b230502084d628938cd50818d3d336f9f911d48d
    GitHub-Pull-Request: golang/go#26784
    Reviewed-on: https://go-review.googlesource.com/127718Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
    Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    4fc7b93a
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...