client

package
v0.0.0-...-6315492 Latest Latest
Warning

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

Go to latest
Published: May 1, 2015 License: Apache-2.0 Imports: 21 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is a HTTP proxy that accepts connections from local programs and proxies these via remote flashlight servers.

func NewClient

func NewClient(addr string) *Client

NewClient creates a proxy client.

func (*Client) ListenAndServe

func (client *Client) ListenAndServe() (err error)

ListenAndServe spawns the HTTP proxy and makes it listen for incoming connections.

func (*Client) ServeHTTP

func (client *Client) ServeHTTP(resp http.ResponseWriter, req *http.Request)

ServeHTTP implements the method from interface http.Handler using the latest handler available from getHandler() and latest ReverseProxy available from getReverseProxy().

func (*Client) Stop

func (client *Client) Stop() error

Stop is currently not implemented but should make the listener stop accepting new connections and then kill all active connections.

Jump to

Keyboard shortcuts

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