Versions in this module Expand all Collapse all v0 v0.0.2 Jun 19, 2021 Changes in this version + const CRLF + const ENDING + var ErrHeaderToLong = newError("Header too long.") + type Config struct + Request *RequestConfig + Response *ResponseConfig + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (m *Config) GetRequest() *RequestConfig + func (m *Config) GetResponse() *ResponseConfig + func (m *Config) Reset() + func (m *Config) String() string + func (m *Config) XXX_DiscardUnknown() + func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Config) XXX_Merge(src proto.Message) + func (m *Config) XXX_Size() int + func (m *Config) XXX_Unmarshal(b []byte) error + type Header struct + Name string + Value []string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (m *Header) GetName() string + func (m *Header) GetValue() []string + func (m *Header) Reset() + func (m *Header) String() string + func (m *Header) XXX_DiscardUnknown() + func (m *Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Header) XXX_Merge(src proto.Message) + func (m *Header) XXX_Size() int + func (m *Header) XXX_Unmarshal(b []byte) error + type HeaderReader struct + func (*HeaderReader) Read(reader io.Reader) (*buf.Buffer, error) + type HeaderWriter struct + func NewHeaderWriter(header *buf.Buffer) *HeaderWriter + func (w *HeaderWriter) Write(writer io.Writer) error + type HttpAuthenticator struct + func NewHttpAuthenticator(ctx context.Context, config *Config) (HttpAuthenticator, error) + func (a HttpAuthenticator) Client(conn net.Conn) net.Conn + func (a HttpAuthenticator) GetClientWriter() *HeaderWriter + func (a HttpAuthenticator) GetServerWriter() *HeaderWriter + func (a HttpAuthenticator) Server(conn net.Conn) net.Conn + type HttpConn struct + func NewHttpConn(conn net.Conn, reader Reader, writer Writer, errorWriter Writer) *HttpConn + func (c *HttpConn) Close() error + func (c *HttpConn) Read(b []byte) (int, error) + func (c *HttpConn) Write(b []byte) (int, error) + type Method struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Method) Descriptor() ([]byte, []int) + func (*Method) ProtoMessage() + func (m *Method) GetValue() string + func (m *Method) Reset() + func (m *Method) String() string + func (m *Method) XXX_DiscardUnknown() + func (m *Method) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Method) XXX_Merge(src proto.Message) + func (m *Method) XXX_Size() int + func (m *Method) XXX_Unmarshal(b []byte) error + type NoOpReader struct + func (NoOpReader) Read(io.Reader) (*buf.Buffer, error) + type NoOpWriter struct + func (NoOpWriter) Write(io.Writer) error + type Reader interface + Read func(io.Reader) (*buf.Buffer, error) + type RequestConfig struct + Header []*Header + Method *Method + Uri []string + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*RequestConfig) Descriptor() ([]byte, []int) + func (*RequestConfig) ProtoMessage() + func (m *RequestConfig) GetHeader() []*Header + func (m *RequestConfig) GetMethod() *Method + func (m *RequestConfig) GetUri() []string + func (m *RequestConfig) GetVersion() *Version + func (m *RequestConfig) Reset() + func (m *RequestConfig) String() string + func (m *RequestConfig) XXX_DiscardUnknown() + func (m *RequestConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *RequestConfig) XXX_Merge(src proto.Message) + func (m *RequestConfig) XXX_Size() int + func (m *RequestConfig) XXX_Unmarshal(b []byte) error + func (v *RequestConfig) GetFullVersion() string + func (v *RequestConfig) GetMethodValue() string + func (v *RequestConfig) GetVersionValue() string + func (v *RequestConfig) PickHeaders() []string + func (v *RequestConfig) PickUri() string + type ResponseConfig struct + Header []*Header + Status *Status + Version *Version + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*ResponseConfig) Descriptor() ([]byte, []int) + func (*ResponseConfig) ProtoMessage() + func (m *ResponseConfig) GetHeader() []*Header + func (m *ResponseConfig) GetStatus() *Status + func (m *ResponseConfig) GetVersion() *Version + func (m *ResponseConfig) Reset() + func (m *ResponseConfig) String() string + func (m *ResponseConfig) XXX_DiscardUnknown() + func (m *ResponseConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *ResponseConfig) XXX_Merge(src proto.Message) + func (m *ResponseConfig) XXX_Size() int + func (m *ResponseConfig) XXX_Unmarshal(b []byte) error + func (v *ResponseConfig) GetFullVersion() string + func (v *ResponseConfig) GetStatusValue() *Status + func (v *ResponseConfig) GetVersionValue() string + func (v *ResponseConfig) HasHeader(header string) bool + func (v *ResponseConfig) PickHeaders() []string + type Status struct + Code string + Reason string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Status) Descriptor() ([]byte, []int) + func (*Status) ProtoMessage() + func (m *Status) GetCode() string + func (m *Status) GetReason() string + func (m *Status) Reset() + func (m *Status) String() string + func (m *Status) XXX_DiscardUnknown() + func (m *Status) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Status) XXX_Merge(src proto.Message) + func (m *Status) XXX_Size() int + func (m *Status) XXX_Unmarshal(b []byte) error + type Version struct + Value string + XXX_NoUnkeyedLiteral struct{} + XXX_sizecache int32 + XXX_unrecognized []byte + func (*Version) Descriptor() ([]byte, []int) + func (*Version) ProtoMessage() + func (m *Version) GetValue() string + func (m *Version) Reset() + func (m *Version) String() string + func (m *Version) XXX_DiscardUnknown() + func (m *Version) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) + func (m *Version) XXX_Merge(src proto.Message) + func (m *Version) XXX_Size() int + func (m *Version) XXX_Unmarshal(b []byte) error + type Writer interface + Write func(io.Writer) error