spdy

package module
Version: v0.0.0-...-7a9ba44 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 6, 2013 License: BSD-3-Clause Imports: 15 Imported by: 0

README

a simple SPDY server.

In order to learn a bit about SPDY, I figured I'd try to implement it in go.
It is not really production ready and still missing some features, but it is possible to use it to
host a reverse proxy on a local godoc server. Use at your own risk.

For more information on how to use this package, refer to the godoc for this package.

TODO: client certificate vectors, server push.

Documentation

Overview

package spdy implements a HTTP server on top of code.google.com/p/go.net/spdy.

This package provides a http server that uses the TLSNextProto feature in net/http to serve connections that where negotiated to be SPDY 3. The HTTPS fallback feature can be disabled by providing a TLS config which does not include http/1.1 in its valid NPN protocols.

TODO: Server Push, Client Certificate validation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	http.Server
}

Server defines the parameters for running a SPDY server.

func (*Server) ListenAndServeTLS

func (srv *Server) ListenAndServeTLS(certFile, keyFile string) error

ListenAndServeTLS starts a SPDY forwarding server, using the parameters in the embedded http.Server.

certFile and keyFile must be filenames to a pair of valid certificate and key.

Directories

Path Synopsis
Package spdy implements the SPDY protocol (currently SPDY/3), described in http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3.
Package spdy implements the SPDY protocol (currently SPDY/3), described in http://www.chromium.org/spdy/spdy-protocol/spdy-protocol-draft3.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL