1
0
mirror of https://github.com/golang/go synced 2024-11-12 04:50:21 -07:00
go/src
Brad Fitzpatrick a9cf0b1e1e 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>
2016-05-01 06:06:07 +00:00
..
archive archive/zip: improve BenchmarkCompressedZipGarbage 2016-05-01 04:42:00 +00:00
bufio all: replace magic 0x80 with named constant utf8.RuneSelf 2016-04-10 15:15:57 +00:00
builtin
bytes all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
cmd cmd/internal/obj/mips, cmd/link: add support TLS relocation for mips64x 2016-05-01 03:36:19 +00:00
compress compress/flate: use a constant hash table size for Best Speed. 2016-04-29 14:00:39 +00:00
container container/heap: correct number of elements in BenchmarkDup 2016-04-20 15:26:05 +00:00
context context: produce a nicer panic message for a nil WithValue key 2016-04-29 03:20:51 +00:00
crypto crypto/cipher, crypto/aes: add s390x implementation of AES-CTR 2016-04-29 21:17:31 +00:00
database/sql database/sql: clone data for named []byte types 2016-04-30 18:40:36 +00:00
debug debug/pe: .bss section must contain only zeros 2016-04-29 02:58:42 +00:00
encoding encoding/json: add Encoder.DisableHTMLEscaping 2016-04-22 21:35:56 +00:00
errors
expvar
flag flag: update test case (fix build) 2016-04-21 23:17:18 +00:00
fmt fmt: remove extra space in doc for compound objects 2016-04-17 20:07:32 +00:00
go net/http: add Transport.MaxIdleConns limit 2016-05-01 00:12:20 +00:00
hash hash/crc32: use vector instructions on s390x 2016-04-22 18:07:15 +00:00
html html/template, text/template: clarify Parse{Files,Glob} semantics 2016-04-22 02:01:54 +00:00
image image/gif: accept an out-of-bounds transparent color index. 2016-04-29 00:01:22 +00:00
index/suffixarray
internal net/http, net/http/httptrace: new package for tracing HTTP client requests 2016-04-28 20:56:38 +00:00
io io: document WriteString calls Write exactly once 2016-04-12 01:03:51 +00:00
log
math math/big: more tests, documentation for Flot gob marshalling 2016-04-20 21:16:21 +00:00
mime all: standardize RFC mention format 2016-04-12 21:07:52 +00:00
net net/http: provide access to the listener address an HTTP request arrived on 2016-05-01 06:06:07 +00:00
os os/exec: fix variable shadow, don't leak goroutine 2016-04-28 20:56:25 +00:00
path all: use bytes.Equal, bytes.Contains and strings.Contains, again 2016-04-11 15:16:54 +00:00
reflect runtime: reclaim scan/dead bit in first word 2016-04-30 16:49:54 +00:00
regexp regexp: add a harder regexp to the benchmarks 2016-04-27 16:40:22 +00:00
runtime runtime: update some comments 2016-05-01 03:31:50 +00:00
sort
strconv strconv: fix ParseFloat for special forms of zero values 2016-04-19 22:39:43 +00:00
strings all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
sync all: remove unnecessary type conversions 2016-04-15 07:31:45 +00:00
syscall syscall: fix uint64->int cast of control message header 2016-04-27 20:10:09 +00:00
testing testing: add matching of subtest 2016-04-21 19:58:31 +00:00
text html/template, text/template: clarify Parse{Files,Glob} semantics 2016-04-22 02:01:54 +00:00
time time: print zero duration as 0s, not 0 2016-04-21 22:07:59 +00:00
unicode unicode: improve SimpleFold performance for ascii 2016-04-26 21:59:50 +00:00
unsafe
vendor/golang.org/x/net/http2/hpack
all.bash
all.bat
all.rc
androidtest.bash
bootstrap.bash
buildall.bash
clean.bash
clean.bat
clean.rc
cmp.bash cmd/compile: switch to compact export format by default 2016-04-27 16:59:55 +00:00
iostest.bash
make.bash
make.bat
Make.dist
make.rc
naclmake.bash src: split nacltest.bash into naclmake.bash and keep nacltest.bash 2016-04-12 02:03:34 +00:00
nacltest.bash src: split nacltest.bash into naclmake.bash and keep nacltest.bash 2016-04-12 02:03:34 +00:00
race.bash
race.bat
run.bash
run.bat
run.rc