Versions in this module Expand all Collapse all v1 v1.8.4 Aug 21, 2023 Changes in this version + const CRLF + const ENDING + var ErrHeaderMisMatch = newError("Header Mismatch.") + var ErrHeaderToLong = newError("Header too long.") + var File_transport_internet_headers_http_config_proto protoreflect.FileDescriptor + type Authenticator struct + func NewAuthenticator(ctx context.Context, config *Config) (Authenticator, error) + func (a Authenticator) Client(conn net.Conn) net.Conn + func (a Authenticator) GetClientWriter() *HeaderWriter + func (a Authenticator) GetServerWriter() *HeaderWriter + func (a Authenticator) Server(conn net.Conn) net.Conn + type Config struct + Request *RequestConfig + Response *ResponseConfig + func (*Config) Descriptor() ([]byte, []int) + func (*Config) ProtoMessage() + func (x *Config) GetRequest() *RequestConfig + func (x *Config) GetResponse() *ResponseConfig + func (x *Config) ProtoReflect() protoreflect.Message + func (x *Config) Reset() + func (x *Config) String() string + type Conn struct + func NewConn(conn net.Conn, reader Reader, writer Writer, errorWriter Writer, ...) *Conn + func (c *Conn) Close() error + func (c *Conn) Read(b []byte) (int, error) + func (c *Conn) Write(b []byte) (int, error) + type Header struct + Name string + Value []string + func (*Header) Descriptor() ([]byte, []int) + func (*Header) ProtoMessage() + func (x *Header) GetName() string + func (x *Header) GetValue() []string + func (x *Header) ProtoReflect() protoreflect.Message + func (x *Header) Reset() + func (x *Header) String() string + type HeaderReader struct + func (h *HeaderReader) ExpectThisRequest(expectedHeader *RequestConfig) *HeaderReader + func (h *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 Method struct + Value string + func (*Method) Descriptor() ([]byte, []int) + func (*Method) ProtoMessage() + func (x *Method) GetValue() string + func (x *Method) ProtoReflect() protoreflect.Message + func (x *Method) Reset() + func (x *Method) String() string + 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 + func (*RequestConfig) Descriptor() ([]byte, []int) + func (*RequestConfig) ProtoMessage() + 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 + func (x *RequestConfig) GetHeader() []*Header + func (x *RequestConfig) GetMethod() *Method + func (x *RequestConfig) GetUri() []string + func (x *RequestConfig) GetVersion() *Version + func (x *RequestConfig) ProtoReflect() protoreflect.Message + func (x *RequestConfig) Reset() + func (x *RequestConfig) String() string + type ResponseConfig struct + Header []*Header + Status *Status + Version *Version + func (*ResponseConfig) Descriptor() ([]byte, []int) + func (*ResponseConfig) ProtoMessage() + 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 + func (x *ResponseConfig) GetHeader() []*Header + func (x *ResponseConfig) GetStatus() *Status + func (x *ResponseConfig) GetVersion() *Version + func (x *ResponseConfig) ProtoReflect() protoreflect.Message + func (x *ResponseConfig) Reset() + func (x *ResponseConfig) String() string + type Status struct + Code string + Reason string + func (*Status) Descriptor() ([]byte, []int) + func (*Status) ProtoMessage() + func (x *Status) GetCode() string + func (x *Status) GetReason() string + func (x *Status) ProtoReflect() protoreflect.Message + func (x *Status) Reset() + func (x *Status) String() string + type Version struct + Value string + func (*Version) Descriptor() ([]byte, []int) + func (*Version) ProtoMessage() + func (x *Version) GetValue() string + func (x *Version) ProtoReflect() protoreflect.Message + func (x *Version) Reset() + func (x *Version) String() string + type Writer interface + Write func(io.Writer) error