Documentation ¶
Index ¶
- Variables
- type Header
- type HeaderValue
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetAttributes() map[string]*HeaderValue
- func (x *Request) GetCookies() map[string]*HeaderValue
- func (x *Request) GetHeader() map[string]*HeaderValue
- func (x *Request) GetMethod() string
- func (x *Request) GetParsed() bool
- func (x *Request) GetProtocol() string
- func (x *Request) GetRawQuery() string
- func (x *Request) GetRemoteAddr() string
- func (x *Request) GetUploads() []byte
- func (x *Request) GetUri() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
Constants ¶
This section is empty.
Variables ¶
View Source
var File_http_v1_http_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Header ¶
type Header struct { Header map[string]*HeaderValue `` /* 153-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Header) Descriptor
deprecated
func (*Header) GetHeader ¶
func (x *Header) GetHeader() map[string]*HeaderValue
func (*Header) ProtoMessage ¶
func (*Header) ProtoMessage()
func (*Header) ProtoReflect ¶
func (x *Header) ProtoReflect() protoreflect.Message
type HeaderValue ¶
type HeaderValue struct { Value []string `protobuf:"bytes,1,rep,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*HeaderValue) Descriptor
deprecated
func (*HeaderValue) Descriptor() ([]byte, []int)
Deprecated: Use HeaderValue.ProtoReflect.Descriptor instead.
func (*HeaderValue) GetValue ¶
func (x *HeaderValue) GetValue() []string
func (*HeaderValue) ProtoMessage ¶
func (*HeaderValue) ProtoMessage()
func (*HeaderValue) ProtoReflect ¶
func (x *HeaderValue) ProtoReflect() protoreflect.Message
func (*HeaderValue) Reset ¶
func (x *HeaderValue) Reset()
func (*HeaderValue) String ¶
func (x *HeaderValue) String() string
type Request ¶
type Request struct { RemoteAddr string `protobuf:"bytes,1,opt,name=remote_addr,json=remoteAddr,proto3" json:"remote_addr,omitempty"` Protocol string `protobuf:"bytes,2,opt,name=protocol,proto3" json:"protocol,omitempty"` Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` Uri string `protobuf:"bytes,4,opt,name=uri,proto3" json:"uri,omitempty"` Header map[string]*HeaderValue `` /* 153-byte string literal not displayed */ Cookies map[string]*HeaderValue `` /* 155-byte string literal not displayed */ RawQuery string `protobuf:"bytes,7,opt,name=raw_query,json=rawQuery,proto3" json:"raw_query,omitempty"` Parsed bool `protobuf:"varint,8,opt,name=parsed,proto3" json:"parsed,omitempty"` Uploads []byte `protobuf:"bytes,9,opt,name=uploads,proto3" json:"uploads,omitempty"` Attributes map[string]*HeaderValue `` /* 162-byte string literal not displayed */ // contains filtered or unexported fields }
proto http request
func (*Request) Descriptor
deprecated
func (*Request) GetAttributes ¶
func (x *Request) GetAttributes() map[string]*HeaderValue
func (*Request) GetCookies ¶
func (x *Request) GetCookies() map[string]*HeaderValue
func (*Request) GetHeader ¶
func (x *Request) GetHeader() map[string]*HeaderValue
func (*Request) GetProtocol ¶
func (*Request) GetRawQuery ¶
func (*Request) GetRemoteAddr ¶
func (*Request) GetUploads ¶
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
type Response ¶
type Response struct { Status int64 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` Headers map[string]*HeaderValue `` /* 155-byte string literal not displayed */ // contains filtered or unexported fields }
func (*Response) Descriptor
deprecated
func (*Response) GetHeaders ¶
func (x *Response) GetHeaders() map[string]*HeaderValue
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.