Ecosyste.ms: OpenCollective
An open API service for software projects hosted on Open Collective.
github.com/ooni/oohttp
Fork of Go stdlib's net/http that works with alternative TLS libraries like refraction-networking/utls.
https://github.com/ooni/oohttp
* Rewrite the flushing code to not use a persistent goroutine, which
also simplifies testing.
...
Change-Id: I94cebca86706e072fbe3be782d3edbe0e22b9432
GitHub-Last-Rev: 8e15a40545704fb21b41a87680...
Change-Id: If2954bdfc551515403706b2cd0dde94e45936e08
GitHub-Last-Rev: d4cfc41a5504cf10befefdb881...
And start using it elsewhere in the standard library, removing the
copies in the process.
While...
1f74c6de0962c69ea6d617cb92709e78b0cc25bd authored over 6 years ago
If an illegal header write is detected, find the first caller outside of
net/http using runtime....
This will clarify that the resources are not completely pushed yet when `Push` returns and that ...
6b339f610940493cc5b1b809ee5a8d3dad321e79 authored over 6 years ago
Change-Id: Ie7f6592d726eba73a5e6b3203e083bff55ff8e4e
GitHub-Last-Rev: 4e317b39dd337f95aa7b7f3219...
WebSockets requires HTTP/1 in practice (no spec or implementations
work over HTTP/2), so if we g...
When http2 fails with ErrNoCachedConn the request is retried with body
that has already been rea...
Fixes #27923
Change-Id: Ia902a1966beeae56e43265fc5ed987555fa834b6
Reviewed-on: https://go-revie...
Currently there is no example for http.Handle in the
documentation. This adds an example.
Chang...
ea2d521ab662beb69df096edb4436035b072d165 authored over 6 years ago
A simple grep over the codebase for "the the" which is often
missed by humans.
Change-Id: Ie4b4...
b5ccdbe6fee8c667d7513158e075a1db584b8859 authored over 6 years ago
Change-Id: I6a69c7a5b829a967d75e1c79210a4906c0d8f505
Reviewed-on: https://go-review.googlesource...
I omitted vendor directories and anything necessary for bootstrapping.
(Tested by bootstrapping ...
it looks like we should abort trying to configure the http2 transport
again, once it has been co...
The Fetch API returns a null body if there is no response body,
on browsers that support streami...
cloneHeader duplicates what Header.clone() method is doing. It's
used in a single place, which c...
Fixes missing commas where it wasn't immediately apparent whether
"requests" was being used as a...
Change-Id: Id0e2fb2abad5b776ac0ed76e55e36c6b774b5b7a
Reviewed-on: https://go-review.googlesource...
Updates #26937
Updates #17227
Change-Id: I79865938b05c219e1947822e60e4f52bb2604b70
Reviewed-on:...
The existing documentation of http.Dir is clear in that, if you want to hide
your files and dire...
Change-Id: I8361ae33c785e45e3ccc7e9bc2732c887eeb41c4
Reviewed-on: https://go-review.googlesource...
Change-Id: Iaa5ded13e8ab4753e2e3d04c9fff203d854208ba
Reviewed-on: https://go-review.googlesource...
Change-Id: I76d878343c1cc14b53c700b0476ca050c1f9e6be
GitHub-Last-Rev: 148a45f4b63f7f55312112bbbd...
Change-Id: I93bc5de6bcb23c2639d7c2f3f5252fb6f09ca6e4
Reviewed-on: https://go-review.googlesource...
Fixes #26563
Change-Id: I22b0c72d45fab9d3f31fda04da76a8c0b10cd8b6
Reviewed-on: https://go-revie...
Issues #10043, #15405, and #22660 appear to have been fixed, and
whatever tests I could run loca...
The default WASM RoundTripper is implemented using
the browser Fetch API. Some options don't rea...
Fixes #26101
Change-Id: Id4def032b846257d2de992b7561ac90a17e08b91
Reviewed-on: https://go-revie...
Also updates the bundled http2 to x/net/http2 git rev 49c15d80 for:
http2: revert CL 107295 ...
1586aa65a62fb3ceff78dcc2112a89c25c0c3fef authored over 6 years agoUpdates #22821
Change-Id: I2d0d483538174a90f56c26d99bea89fe9ce4d144
Reviewed-on: https://go-rev...
The net/http module added support for HTTPS proxies in CL 68550, but the
Transport.Proxy docstri...
We've expanded this several times. Try more.
Fixes #18837
Change-Id: I03b699391351a30ee60a15d7...
2e0e2e86581dd7e903191e88a15d556ec233498f authored over 6 years ago
The only inaccurate part was the HTTP/2 caveat in Server.ServeTLS, which
only applies to the pla...
Updates #9424
Change-Id: If117ba3e7d031f84b30d3a721ef99fe622734de2
Reviewed-on: https://go-revi...
There's a 50ms threshold in net/http.Transport that this test
sometimes hitting on slower device...
Contains portions and modified portions of CL 103815
Fixes #24607
Change-Id: Ic330850a0f098f18...
4ea02eba77f33c1ff360fdc52e1d92e0cf3b21d1 authored over 6 years ago
The doc for ResponseRecorder.Result guarantees that the body of the returned
http.Response will ...
Updates http2 to x/net/http2 git rev a680a1efc54 for:
http2: reject large SETTINGS frames or...
245f131b7a200a654d005de3cce3a6e0066a8bec authored over 6 years agoIt was flaky on slower machines.
Per report at https://github.com/golang/go/issues/23399#issuec...
fac457fb0f9c38c00fef23e1728dc45ef5953a64 authored over 6 years agoChange-Id: I0f76b40dbfda2d382c88aec377db1851c4ac7441
Change-Id: I0f76b40dbfda2d382c88aec377db18...
7f9673f5d97a3a516b701a0eb1c9a30e6eaee257 authored over 6 years agoSee big comment in code.
Fixes #23921
Change-Id: I2dbd1acc2e9da07a71f9e0640aafe0c59a335627
Rev...
This permits specifying an ErrorHandler to customize the RoundTrip
error handling if the backend...
syscall/js does not allow []byte to be used in direct inputs to
its JavaScript manipulation meth...
Updates bundled x/net/http2 to git rev d0887baf81f4 for:
http2: ignore unknown 1xx response...
25904ca55fe01f3066573c82b8555e0ba639d82d authored over 6 years ago
Previously Transport.CloseIdleConnections only closed the HTTP/2
Transport's idle connections if...
Updates bundled x/net/http2 to git rev cffdcf67 for:
http2: use GetBody unconditionally on ...
9206bd514d4a497d8b5dddc5626499f5262de6ab authored over 6 years agoFor #23399
Change-Id: I9bc7c21fda6bfa89af2e7656e5c85aa9edd4f29e
Reviewed-on: https://go-review....
Remove some incorrect code that was present after since I added
support for idle timeouts in CL ...
Fixes #21780
Change-Id: Ic6fb6a536fff800a05be2d25309f72092604a785
Reviewed-on: https://go-revie...
Updates http2 to x/net/http2 git rev 292b43b for:
http2: reject incoming HEADERS in Server ...
b52bff933d1cff4c59f35f5ce14a352852431831 authored over 6 years agoPer comments in https://github.com/golang/go/issues/20239#issuecomment-402199944
Updates #20239...
f6af53512108bd28f40d7c7868ac516001531a2f authored over 6 years agoAdds tests for #122590 and updates x/net/http2 to git rev 6a8eb5e2b1 for:
http2: call http...
7fd9b1717ac39230491b1f8e4754e7f9e8e5e93a authored over 6 years ago
Prior to the fix to #23643, the ReverseProxy didn't panic with
ErrAbortHandler when the copy to ...
The same-site cookie attribute prevents a cookie from being sent along with
cross-site requests....
This updates x/net/http/httpproxy to git rev c21de06a for:
http/httpproxy: support CIDR not...
b3d7fe8c54345cdca505d0f335c003b34d0582b6 authored over 6 years agoFixes #24201
Change-Id: Ib970c4eeaa90489d014482276a7e5afa94a50741
Reviewed-on: https://go-revie...
Add field to http.Transport which limits connections per host,
including dial-in-progress, in-us...
Change-Id: Ie801fe6a2883d79229ee2955e26948c1b4964802
Reviewed-on: https://go-review.googlesource...
This function tests that calling Shutdown on a Server that has a "new"
connection yet to write a...
Before CL 116855, Transport would only skip over 100 (expect-continue)
responses automatically a...
Fixes #20239
Change-Id: Icb021daad82e6905f536e4ef09ab219500b08167
Reviewed-on: https://go-revie...
Updates http2 to x/net/http2 git rev 97aa3a539 for:
http2: dynamic table updates must occur...
a08da142938846c8b3f276bfa9f6857bef5d1d2f authored over 6 years agoBe super explicit that HTTP keep-alives != TCP keep-alives.
Fixes #26128
Change-Id: I77d74a6fe...
4faf5c2cda328d8fe14262e2b66c1b5bb5865103 authored over 6 years ago
I thought I removed this but failed to amend it to my commit before
submitting.
Change-Id: I2d6...
e9353e516bc8b22222a007f1dc75199aa29e8721 authored over 6 years ago
The Server distinguishes "new" vs "idle" connections. A TCP connection
from which no bytes have ...
This makes Callback more in line with TypedArray. The name "Release" is
better than "Close" beca...
The new function js.TypedArrayOf returns a JavaScript typed array for
a given slice.
https://dev...
Updates #19761
Change-Id: Iac3bd4c40002f8e348452b50bff54dee3210d447
Reviewed-on: https://go-rev...
Some headers, which are set or modified by the http library,
are not written to the standard htt...
Beginning on Go 1.9, ServeMux has been dropping the port number from the Host
header and in the ...
This is so the values can not be changed and the type is easy to see.
Requested on https://go-r...
a2de74408259ef5e27067f61a025f86762fa03c0 authored over 6 years agoLogf doesn't make the test fail, so the test was always OK.
Change-Id: I7c10ee74ff7e5d28cbd3a35...
2ab32bbe308c2a49bae5e0f0e48cc4d17570cbe1 authored over 6 years ago
CL 96575 introduced concurrency protection for
ServeMux.shouldRedirect with a read lock and defe...
Second try. The previous version (CL 115039 in git rev 3988863) wasn't
accurate.
Fixes #22347
...
350d7488f538db9f68ed53604273755f6c82a7ab authored over 6 years agoFixes #23993
Change-Id: I112415c894e8c680bfc17d53772275430e46794b
Reviewed-on: https://go-revie...
Fixes #24803
Change-Id: I8b1e7c5a74018a0c333f8c38a7ec5f5827ab1606
Reviewed-on: https://go-revie...
Fixes #25852
Change-Id: I35c630367c8f1934dcffc0b0e08891d55a903518
Reviewed-on: https://go-revie...
Previously the Transport had good support for 100 Continue responses,
but other 1xx informationa...
Although not part of http://mimesniff.spec.whatwg.org,
for WASM streaming compilation to happen,...
Users of this field are better off using Result instead.
Fixes #25763.
Change-Id: I4391afa6ed3...
f101a3c114a97255e7e484f9579f224380a6fb58 authored over 6 years ago
Also, add a benchmark variant ("SkipServe") that only benchmarks the
ServeMux handler selection ...
Fixes #25019
Change-Id: I715e3bb560b2a0301240cecb09a5126ab04a666e
Reviewed-on: https://go-revie...
This commit adds the js/wasm architecture to the net package.
The net package is not supported b...
The in-progress WASM port does not yet have sufficient automatic
testing performed against it, s...
Each URL was manually verified to ensure it did not serve up incorrect
content.
Change-Id: I4dc...
71d7b58109593cc888437637ddb80dec1c15fccf authored over 6 years ago
Replaces the existing local loopback check with a check to see
whether the program is being inte...
This change uses the DialWithConn method of socks.Dialer to ensure that
the bundled SOCKS client...
For functions TestClonesRequestHeaders and TestReverseProxy_PanicBodyError,
I made changes to up...
Adds a new Transport type for the js/wasm target that uses the
JavaScript Fetch API for sending ...
Change-Id: Ibb21c12bf67b2648eb7606bee8ec1b54e6c70dd5
Reviewed-on: https://go-review.googlesource...
Fixes #23450
Change-Id: I829399194299d2e6d5e754b60e8f72b321b5da90
Reviewed-on: https://go-revie...
Fixes #21096
Change-Id: I2a4688a79bdaa25b4e8ef38e3390d93d3d0bce04
Reviewed-on: https://go-revie...
From x/net git rev c7086645de2.
Updates #16704
Change-Id: I4d642478fc69a52c973964845fca2fd4027...
a45df00c8174ef3804812f1ea8faf58766be0f13 authored over 6 years agoFixes #22347
Change-Id: If86aa5d54cfd7a7c32d630fb2bf4f47e057dbfb2
Reviewed-on: https://go-revie...
This changes the http.Transport to flush the bufio.Writer between
writing the request headers an...
This function checks Request.PostForm, which now includes values parsed
from a PATCH request.
C...
f91be0a55f877eb08e3ff496db9b77f352455e5f authored over 6 years agoFixes #25476
Change-Id: I5a81cdf7d0ef9a22b0267732f27bcc2ef76eaa29
Reviewed-on: https://go-revie...
Use Go 1.7 Run method of testing.T to run the table-driven tests into
separate, named subtests. ...
s/thread/thead/ as this is Table HEAD and not a thread as indicated by
the closing tag an contex...