httpstream

package module
v0.0.0-...-80f5789 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2015 License: Apache-2.0 Imports: 2 Imported by: 0

README

httpstream

This is a prototype of an API to upgrade HTTP requests and responses to add streaming support such as what's offered by SPDY, HTTP/2, and WebSockets.

The initial implementation supports SPDY/3.1 via spdystream.

License

Licensed under the Apache License, Version 2.0. See the LICENSE file for full details.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection interface {
	io.Closer
	CloseWait() error
	CreateStream(headers http.Header) (Stream, error)
}

type NewStreamHandler

type NewStreamHandler func(Stream)

type RequestStreamer

type RequestStreamer interface {
	Stream3(req *http.Request, doStdin, doStdout, doStderr, tty bool) (stdin io.WriteCloser, stdout, stderr io.Reader, err error)
	Wait()
}

type RequestUpgrader

type RequestUpgrader interface {
	Upgrade(request *http.Request, newStreamHandler NewStreamHandler) (Connection, error)
}

type ResponseStreamer

type ResponseStreamer interface {
	StreamResponse(w http.ResponseWriter, req *http.Request) (stdin io.Reader, stdout, stderr io.WriteCloser, err error)
	Wait()
}

type ResponseUpgrader

type ResponseUpgrader interface {
	Upgrade(w http.ResponseWriter, req *http.Request, newStreamHandler NewStreamHandler) (Connection, error)
}

type Stream

type Stream interface {
	io.ReadWriteCloser
	GetHeader(key string) string
}

Directories

Path Synopsis
cmd
client command
server command

Jump to

Keyboard shortcuts

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