]> Cypherpunks repositories - gostls13.git/commit
net/http: support configuring fetch options
authorJohan Brandhorst <johan.brandhorst@gmail.com>
Fri, 3 Aug 2018 14:48:16 +0000 (14:48 +0000)
committerBrad Fitzpatrick <bradfitz@golang.org>
Mon, 13 Aug 2018 19:04:16 +0000 (19:04 +0000)
commit4fc7b93ad7c36b769ef54b4706e6a045d7a8e311
treee6c29b3afccc81641f5ec906236d33c4d461cdcc
parent7a6fc1f30bc7339726cd3f93f96be3e0d36ff7cb
net/http: support configuring fetch options

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/127718
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/roundtrip_js.go