Versions in this module Expand all Collapse all v1 v1.0.0 Jun 19, 2022 Changes in this version + var File_ghttpproto_http_proto protoreflect.FileDescriptor + var HTTP_ServiceDesc = grpc.ServiceDesc + func RegisterHTTPServer(s grpc.ServiceRegistrar, srv HTTPServer) + type Certificates struct + Cert [][]byte + func (*Certificates) Descriptor() ([]byte, []int) + func (*Certificates) ProtoMessage() + func (x *Certificates) GetCert() [][]byte + func (x *Certificates) ProtoReflect() protoreflect.Message + func (x *Certificates) Reset() + func (x *Certificates) String() string + type ConnectionState struct + CipherSuite uint32 + DidResume bool + HandshakeComplete bool + NegotiatedProtocol string + NegotiatedProtocolIsMutual bool + OcspResponse []byte + PeerCertificates *Certificates + ServerName string + SignedCertificateTimestamps [][]byte + TlsUnique []byte + VerifiedChains []*Certificates + Version uint32 + func (*ConnectionState) Descriptor() ([]byte, []int) + func (*ConnectionState) ProtoMessage() + func (x *ConnectionState) GetCipherSuite() uint32 + func (x *ConnectionState) GetDidResume() bool + func (x *ConnectionState) GetHandshakeComplete() bool + func (x *ConnectionState) GetNegotiatedProtocol() string + func (x *ConnectionState) GetNegotiatedProtocolIsMutual() bool + func (x *ConnectionState) GetOcspResponse() []byte + func (x *ConnectionState) GetPeerCertificates() *Certificates + func (x *ConnectionState) GetServerName() string + func (x *ConnectionState) GetSignedCertificateTimestamps() [][]byte + func (x *ConnectionState) GetTlsUnique() []byte + func (x *ConnectionState) GetVerifiedChains() []*Certificates + func (x *ConnectionState) GetVersion() uint32 + func (x *ConnectionState) ProtoReflect() protoreflect.Message + func (x *ConnectionState) Reset() + func (x *ConnectionState) String() string + type Element struct + Key string + Values []string + func (*Element) Descriptor() ([]byte, []int) + func (*Element) ProtoMessage() + func (x *Element) GetKey() string + func (x *Element) GetValues() []string + func (x *Element) ProtoReflect() protoreflect.Message + func (x *Element) Reset() + func (x *Element) String() string + type HTTPClient interface + Handle func(ctx context.Context, in *HTTPRequest, opts ...grpc.CallOption) (*HTTPResponse, error) + func NewHTTPClient(cc grpc.ClientConnInterface) HTTPClient + type HTTPRequest struct + Request *Request + ResponseWriter *ResponseWriter + func (*HTTPRequest) Descriptor() ([]byte, []int) + func (*HTTPRequest) ProtoMessage() + func (x *HTTPRequest) GetRequest() *Request + func (x *HTTPRequest) GetResponseWriter() *ResponseWriter + func (x *HTTPRequest) ProtoReflect() protoreflect.Message + func (x *HTTPRequest) Reset() + func (x *HTTPRequest) String() string + type HTTPResponse struct + func (*HTTPResponse) Descriptor() ([]byte, []int) + func (*HTTPResponse) ProtoMessage() + func (x *HTTPResponse) ProtoReflect() protoreflect.Message + func (x *HTTPResponse) Reset() + func (x *HTTPResponse) String() string + type HTTPServer interface + Handle func(context.Context, *HTTPRequest) (*HTTPResponse, error) + type Request struct + Body uint32 + ContentLength int64 + Form []*Element + Header []*Element + Host string + Method string + PostForm []*Element + Proto string + ProtoMajor int32 + ProtoMinor int32 + RemoteAddr string + RequestUri string + Tls *ConnectionState + TrailerKeys []string + TransferEncoding []string + Url *URL + func (*Request) Descriptor() ([]byte, []int) + func (*Request) ProtoMessage() + func (x *Request) GetBody() uint32 + func (x *Request) GetContentLength() int64 + func (x *Request) GetForm() []*Element + func (x *Request) GetHeader() []*Element + func (x *Request) GetHost() string + func (x *Request) GetMethod() string + func (x *Request) GetPostForm() []*Element + func (x *Request) GetProto() string + func (x *Request) GetProtoMajor() int32 + func (x *Request) GetProtoMinor() int32 + func (x *Request) GetRemoteAddr() string + func (x *Request) GetRequestUri() string + func (x *Request) GetTls() *ConnectionState + func (x *Request) GetTrailerKeys() []string + func (x *Request) GetTransferEncoding() []string + func (x *Request) GetUrl() *URL + func (x *Request) ProtoReflect() protoreflect.Message + func (x *Request) Reset() + func (x *Request) String() string + type ResponseWriter struct + Header []*Element + Id uint32 + func (*ResponseWriter) Descriptor() ([]byte, []int) + func (*ResponseWriter) ProtoMessage() + func (x *ResponseWriter) GetHeader() []*Element + func (x *ResponseWriter) GetId() uint32 + func (x *ResponseWriter) ProtoReflect() protoreflect.Message + func (x *ResponseWriter) Reset() + func (x *ResponseWriter) String() string + type URL struct + ForceQuery bool + Fragment string + Host string + Opaque string + Path string + RawPath string + RawQuery string + Scheme string + User *Userinfo + func (*URL) Descriptor() ([]byte, []int) + func (*URL) ProtoMessage() + func (x *URL) GetForceQuery() bool + func (x *URL) GetFragment() string + func (x *URL) GetHost() string + func (x *URL) GetOpaque() string + func (x *URL) GetPath() string + func (x *URL) GetRawPath() string + func (x *URL) GetRawQuery() string + func (x *URL) GetScheme() string + func (x *URL) GetUser() *Userinfo + func (x *URL) ProtoReflect() protoreflect.Message + func (x *URL) Reset() + func (x *URL) String() string + type UnimplementedHTTPServer struct + func (UnimplementedHTTPServer) Handle(context.Context, *HTTPRequest) (*HTTPResponse, error) + type UnsafeHTTPServer interface + type Userinfo struct + Password string + PasswordSet bool + Username string + func (*Userinfo) Descriptor() ([]byte, []int) + func (*Userinfo) ProtoMessage() + func (x *Userinfo) GetPassword() string + func (x *Userinfo) GetPasswordSet() bool + func (x *Userinfo) GetUsername() string + func (x *Userinfo) ProtoReflect() protoreflect.Message + func (x *Userinfo) Reset() + func (x *Userinfo) String() string