diff options
| author | Brad Fitzpatrick <bradfitz@golang.org> | 2016-04-30 21:11:26 -0700 |
|---|---|---|
| committer | Brad Fitzpatrick <bradfitz@golang.org> | 2016-05-01 06:06:07 +0000 |
| commit | a9cf0b1e1e2a66db547fcabb7188465e4ac54700 (patch) | |
| tree | e813e25d816bae7a3d55dbfe13f28958a6b0e2b9 /src/androidtest.bash | |
| parent | abc1472d78c70888473634497b49b1c2e1bb6569 (diff) | |
| download | go-a9cf0b1e1e2a66db547fcabb7188465e4ac54700.tar.xz | |
net/http: provide access to the listener address an HTTP request arrived on
This adds a context key named LocalAddrContextKey (for now, see #15229) to
let users access the net.Addr of the net.Listener that accepted the connection
that sent an HTTP request. This is similar to ServerContextKey which provides
access to the *Server. (A Server may have multiple Listeners)
Fixes #6732
Change-Id: I74296307b68aaaab8df7ad4a143e11b5227b5e62
Reviewed-on: https://go-review.googlesource.com/22672
Reviewed-by: Andrew Gerrand <adg@golang.org>
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/androidtest.bash')
0 files changed, 0 insertions, 0 deletions
