HTTP

package
v0.942.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomResponseWriter

type CustomResponseWriter struct {
	httptest.ResponseRecorder
	http.Hijacker
	ClientConnection net.Conn
	ClientReadWriter *bufio.ReadWriter
}

func CreateCustomResponseWriter

func CreateCustomResponseWriter(
	clientConnection net.Conn,
	clientConnectionReader *bufio.Reader,
	clientConnectionWriter *bufio.Writer) *CustomResponseWriter

func (*CustomResponseWriter) Hijack

func (customResponseWriter *CustomResponseWriter) Hijack() (net.Conn, *bufio.ReadWriter, error)

type HTTP

type HTTP struct {
	AuthenticationMethod Types.AuthenticationMethod
	ProxyController      *goproxy.ProxyHttpServer
	LoggingMethod        Types.LoggingMethod
	InboundFilter        Types.IOFilter
	OutboundFilter       Types.IOFilter
}

func (*HTTP) Handle

func (httpProtocol *HTTP) Handle(
	clientConnection net.Conn,
	clientConnectionReader *bufio.Reader,
	clientConnectionWriter *bufio.Writer) error

func (*HTTP) SetAuthenticationMethod

func (httpProtocol *HTTP) SetAuthenticationMethod(authenticationMethod Types.AuthenticationMethod) error

func (*HTTP) SetInboundFilter

func (httpProtocol *HTTP) SetInboundFilter(filter Types.IOFilter) error

func (*HTTP) SetLoggingMethod

func (httpProtocol *HTTP) SetLoggingMethod(loggingMethod Types.LoggingMethod) error

func (*HTTP) SetOutboundFilter

func (httpProtocol *HTTP) SetOutboundFilter(filter Types.IOFilter) error

func (*HTTP) SetTimeout

func (httpProtocol *HTTP) SetTimeout(_ time.Duration) error

func (*HTTP) SetTries

func (httpProtocol *HTTP) SetTries(_ int) error

Jump to

Keyboard shortcuts

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