Documentation ¶
Overview ¶
Package spdy implements the SPDY protocol's HTTP layer.
Index ¶
- func ListenAndServeTLS(addr, certFile, keyFile string, h http.Handler) error
- func ReadRequest(h, t http.Header, r io.Reader) (*http.Request, error)
- func ReadResponse(h, t http.Header, r io.Reader, req *http.Request) (*http.Response, error)
- func RequestFramingHeader(r *http.Request) (http.Header, framing.ControlFlags, error)
- type Conn
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListenAndServeTLS ¶
ListenAndServeTLS is like http.ListenAndServeTLS, but serves both HTTP and SPDY.
func ReadRequest ¶
ReadRequest reads an HTTP request. The header is taken from h, which must include the SPDY-specific fields starting with ':'. If r is not nil, the body will be read from r. If t is not nil, the trailer will be taken from t after the body is finished.
func ReadResponse ¶
ReadResponse reads an HTTP response. The header is taken from h, which must include the SPDY-specific fields starting with ':'. If r is not nil, the body will be read from r. If t is not nil, the trailer will be taken from t after the body is finished.
func RequestFramingHeader ¶
RequestFramingHeader copies r into a header suitable for use in the SPDY framing layer. It includes the SPDY-specific ':' fields such as :scheme, :method, and :version.
Types ¶
type Conn ¶
Conn represents a SPDY client connection. It implements http.RoundTripper for making HTTP requests.
type Server ¶
func (*Server) ListenAndServeTLS ¶
ListenAndServeTLS is like http.Server.ListenAndServeTLS, but serves both HTTP and SPDY.
Directories ¶
Path | Synopsis |
---|---|
Package spdyframing implements the SPDY protocol (currently SPDY/3), described in http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3.
|
Package spdyframing implements the SPDY protocol (currently SPDY/3), described in http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3. |