diff options
| author | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 | 
|---|---|---|
| committer | Ondřej Surý <ondrej@sury.org> | 2011-04-26 09:55:32 +0200 | 
| commit | 7b15ed9ef455b6b66c6b376898a88aef5d6a9970 (patch) | |
| tree | 3ef530baa80cdf29436ba981f5783be6b4d2202b /src/pkg/http/request.go | |
| parent | 50104cc32a498f7517a51c8dc93106c51c7a54b4 (diff) | |
| download | golang-7b15ed9ef455b6b66c6b376898a88aef5d6a9970.tar.gz | |
Imported Upstream version 2011.04.13upstream/2011.04.13
Diffstat (limited to 'src/pkg/http/request.go')
| -rw-r--r-- | src/pkg/http/request.go | 17 | 
1 files changed, 17 insertions, 0 deletions
| diff --git a/src/pkg/http/request.go b/src/pkg/http/request.go index d8456bab3..d82894fab 100644 --- a/src/pkg/http/request.go +++ b/src/pkg/http/request.go @@ -11,6 +11,7 @@ package http  import (  	"bufio" +	"crypto/tls"  	"container/vector"  	"fmt"  	"io" @@ -137,6 +138,22 @@ type Request struct {  	// response has multiple trailer lines with the same key, they will be  	// concatenated, delimited by commas.  	Trailer Header + +	// RemoteAddr allows HTTP servers and other software to record +	// the network address that sent the request, usually for +	// logging. This field is not filled in by ReadRequest and +	// has no defined format. The HTTP server in this package +	// sets RemoteAddr to an "IP:port" address before invoking a +	// handler. +	RemoteAddr string + +	// TLS allows HTTP servers and other software to record +	// information about the TLS connection on which the request +	// was received. This field is not filled in by ReadRequest. +	// The HTTP server in this package sets the field for +	// TLS-enabled connections before invoking a handler; +	// otherwise it leaves the field nil. +	TLS *tls.ConnectionState  }  // ProtoAtLeast returns whether the HTTP protocol used | 
