]> Cypherpunks repositories - gostls13.git/commit
net/http: add Request.Context and Request.WithContext
authorBrad Fitzpatrick <bradfitz@golang.org>
Mon, 4 Apr 2016 20:31:08 +0000 (13:31 -0700)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 5 Apr 2016 03:14:38 +0000 (03:14 +0000)
commitc1c7547f6ad7264c1d6eea3fc1645b2eab104694
treed83166e74c2e2d68cf62786bea5dac09839976a7
parentfcac88098b1d5eee5f0a546e550c3d95cc13f64b
net/http: add Request.Context and Request.WithContext

Currently only used by the client. The server is not yet wired up.  A
TODO remains to document how it works server-side, once implemented.

Updates #14660

Change-Id: I27c2e74198872b2720995fa8271d91de200e23d5
Reviewed-on: https://go-review.googlesource.com/21496
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/go/build/deps_test.go
src/net/http/request.go
src/net/http/response_test.go
src/net/http/transport.go
src/net/http/transport_test.go