httpnpipe

package module
v0.0.0-...-b59a246 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2018 License: Apache-2.0 Imports: 6 Imported by: 0

README

httpnpipe

HTTP over named pipes on Windows

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

func (transport *Transport) RegisterTargetService(serviceName string, pipeName string)

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.

func (*Transport) RoundTrip

func (transport *Transport) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip executes a single HTTP transaction. See net/http.RoundTripper.

Jump to

Keyboard shortcuts

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