Documentation
¶
Overview ¶
Package httpnpipe provides a HTTP transport (net/http.RoundTripper) that uses named pipes rather than sockets for HTTP.
The URLs are of the form:
http+npipe://SERVICE/PATH_ETC
SERVICE is utilized to map to the correct named pipe. Transport.RegisterTargetService, and PATH_ETC follow normal http: scheme conventions.
Index ¶
Constants ¶
View Source
const Scheme = "http+npipe"
Scheme is the URL scheme used for HTTP over named pipes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Transport ¶
type Transport struct { DialTimeout time.Duration RequestTimeout time.Duration ResponseHeaderTimeout time.Duration // contains filtered or unexported fields }
func (*Transport) RegisterTargetService ¶
RegisterTargetService registers a service name (URL) and maps it to target named pipe. This function is invoked in the client wishing to connect to a given service over named pipes.
Calling RegisterTargetService twice for the same service is a programmer error, and causes a panic.
Click to show internal directories.
Click to hide internal directories.