Documentation
¶
Index ¶
Constants ¶
View Source
const ( // CRLF is the line ending in HTTP header CRLF = "\r\n" // ENDING is the double line ending between HTTP header and body. ENDING = CRLF + CRLF )
Variables ¶
View Source
var ( ErrHeaderToLong = errors.New("Header too long.") ErrHeaderMisMatch = errors.New("Header Mismatch.") )
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(config *Config) (Authenticator, error)
func (Authenticator) GetClientWriter ¶
func (a Authenticator) GetClientWriter() *HeaderWriter
func (Authenticator) GetServerWriter ¶
func (a Authenticator) GetServerWriter() *HeaderWriter
type HeaderReader ¶
type HeaderReader struct {
// contains filtered or unexported fields
}
func (*HeaderReader) ExpectThisRequest ¶
func (h *HeaderReader) ExpectThisRequest(expectedHeader *RequestConfig) *HeaderReader
type HeaderWriter ¶
type HeaderWriter struct {
// contains filtered or unexported fields
}
func NewHeaderWriter ¶
func NewHeaderWriter(header *buf.Buffer) *HeaderWriter
type NoOpReader ¶
type NoOpReader struct{}
type NoOpWriter ¶
type NoOpWriter struct{}
type RequestConfig ¶
type RequestConfig = httppb.RequestConfig
type ResponseConfig ¶
type ResponseConfig = httppb.ResponseConfig
Click to show internal directories.
Click to hide internal directories.