mirror of
https://github.com/dstotijn/hetty.git
synced 2025-07-01 18:47:29 -04:00
477 lines
16 KiB
Go
477 lines
16 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.3
|
|
// protoc (unknown)
|
|
// source: http/http.proto
|
|
|
|
package http
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type Method int32
|
|
|
|
const (
|
|
Method_METHOD_UNSPECIFIED Method = 0
|
|
Method_METHOD_GET Method = 1
|
|
Method_METHOD_HEAD Method = 2
|
|
Method_METHOD_POST Method = 3
|
|
Method_METHOD_PUT Method = 4
|
|
Method_METHOD_DELETE Method = 5
|
|
Method_METHOD_CONNECT Method = 6
|
|
Method_METHOD_OPTIONS Method = 7
|
|
Method_METHOD_TRACE Method = 8
|
|
Method_METHOD_PATCH Method = 9
|
|
)
|
|
|
|
// Enum value maps for Method.
|
|
var (
|
|
Method_name = map[int32]string{
|
|
0: "METHOD_UNSPECIFIED",
|
|
1: "METHOD_GET",
|
|
2: "METHOD_HEAD",
|
|
3: "METHOD_POST",
|
|
4: "METHOD_PUT",
|
|
5: "METHOD_DELETE",
|
|
6: "METHOD_CONNECT",
|
|
7: "METHOD_OPTIONS",
|
|
8: "METHOD_TRACE",
|
|
9: "METHOD_PATCH",
|
|
}
|
|
Method_value = map[string]int32{
|
|
"METHOD_UNSPECIFIED": 0,
|
|
"METHOD_GET": 1,
|
|
"METHOD_HEAD": 2,
|
|
"METHOD_POST": 3,
|
|
"METHOD_PUT": 4,
|
|
"METHOD_DELETE": 5,
|
|
"METHOD_CONNECT": 6,
|
|
"METHOD_OPTIONS": 7,
|
|
"METHOD_TRACE": 8,
|
|
"METHOD_PATCH": 9,
|
|
}
|
|
)
|
|
|
|
func (x Method) Enum() *Method {
|
|
p := new(Method)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Method) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Method) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_http_http_proto_enumTypes[0].Descriptor()
|
|
}
|
|
|
|
func (Method) Type() protoreflect.EnumType {
|
|
return &file_http_http_proto_enumTypes[0]
|
|
}
|
|
|
|
func (x Method) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Method.Descriptor instead.
|
|
func (Method) EnumDescriptor() ([]byte, []int) {
|
|
return file_http_http_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
type Protocol int32
|
|
|
|
const (
|
|
Protocol_PROTOCOL_UNSPECIFIED Protocol = 0
|
|
Protocol_PROTOCOL_HTTP10 Protocol = 1
|
|
Protocol_PROTOCOL_HTTP11 Protocol = 2
|
|
Protocol_PROTOCOL_HTTP20 Protocol = 3
|
|
)
|
|
|
|
// Enum value maps for Protocol.
|
|
var (
|
|
Protocol_name = map[int32]string{
|
|
0: "PROTOCOL_UNSPECIFIED",
|
|
1: "PROTOCOL_HTTP10",
|
|
2: "PROTOCOL_HTTP11",
|
|
3: "PROTOCOL_HTTP20",
|
|
}
|
|
Protocol_value = map[string]int32{
|
|
"PROTOCOL_UNSPECIFIED": 0,
|
|
"PROTOCOL_HTTP10": 1,
|
|
"PROTOCOL_HTTP11": 2,
|
|
"PROTOCOL_HTTP20": 3,
|
|
}
|
|
)
|
|
|
|
func (x Protocol) Enum() *Protocol {
|
|
p := new(Protocol)
|
|
*p = x
|
|
return p
|
|
}
|
|
|
|
func (x Protocol) String() string {
|
|
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
|
|
}
|
|
|
|
func (Protocol) Descriptor() protoreflect.EnumDescriptor {
|
|
return file_http_http_proto_enumTypes[1].Descriptor()
|
|
}
|
|
|
|
func (Protocol) Type() protoreflect.EnumType {
|
|
return &file_http_http_proto_enumTypes[1]
|
|
}
|
|
|
|
func (x Protocol) Number() protoreflect.EnumNumber {
|
|
return protoreflect.EnumNumber(x)
|
|
}
|
|
|
|
// Deprecated: Use Protocol.Descriptor instead.
|
|
func (Protocol) EnumDescriptor() ([]byte, []int) {
|
|
return file_http_http_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
type Request struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Method Method `protobuf:"varint,1,opt,name=method,proto3,enum=hetty.http.v1.Method" json:"method,omitempty"`
|
|
Protocol Protocol `protobuf:"varint,2,opt,name=protocol,proto3,enum=hetty.http.v1.Protocol" json:"protocol,omitempty"`
|
|
Url string `protobuf:"bytes,3,opt,name=url,proto3" json:"url,omitempty"`
|
|
Headers []*Header `protobuf:"bytes,4,rep,name=headers,proto3" json:"headers,omitempty"`
|
|
Body []byte `protobuf:"bytes,5,opt,name=body,proto3" json:"body,omitempty"`
|
|
Response *Response `protobuf:"bytes,6,opt,name=response,proto3" json:"response,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Request) Reset() {
|
|
*x = Request{}
|
|
mi := &file_http_http_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Request) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Request) ProtoMessage() {}
|
|
|
|
func (x *Request) ProtoReflect() protoreflect.Message {
|
|
mi := &file_http_http_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Request.ProtoReflect.Descriptor instead.
|
|
func (*Request) Descriptor() ([]byte, []int) {
|
|
return file_http_http_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *Request) GetMethod() Method {
|
|
if x != nil {
|
|
return x.Method
|
|
}
|
|
return Method_METHOD_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Request) GetProtocol() Protocol {
|
|
if x != nil {
|
|
return x.Protocol
|
|
}
|
|
return Protocol_PROTOCOL_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Request) GetUrl() string {
|
|
if x != nil {
|
|
return x.Url
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Request) GetHeaders() []*Header {
|
|
if x != nil {
|
|
return x.Headers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Request) GetBody() []byte {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Request) GetResponse() *Response {
|
|
if x != nil {
|
|
return x.Response
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Response struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Protocol Protocol `protobuf:"varint,1,opt,name=protocol,proto3,enum=hetty.http.v1.Protocol" json:"protocol,omitempty"`
|
|
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"`
|
|
StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
|
|
Headers []*Header `protobuf:"bytes,5,rep,name=headers,proto3" json:"headers,omitempty"`
|
|
Body []byte `protobuf:"bytes,6,opt,name=body,proto3" json:"body,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Response) Reset() {
|
|
*x = Response{}
|
|
mi := &file_http_http_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Response) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Response) ProtoMessage() {}
|
|
|
|
func (x *Response) ProtoReflect() protoreflect.Message {
|
|
mi := &file_http_http_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Response.ProtoReflect.Descriptor instead.
|
|
func (*Response) Descriptor() ([]byte, []int) {
|
|
return file_http_http_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *Response) GetProtocol() Protocol {
|
|
if x != nil {
|
|
return x.Protocol
|
|
}
|
|
return Protocol_PROTOCOL_UNSPECIFIED
|
|
}
|
|
|
|
func (x *Response) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Response) GetStatusCode() int32 {
|
|
if x != nil {
|
|
return x.StatusCode
|
|
}
|
|
return 0
|
|
}
|
|
|
|
func (x *Response) GetHeaders() []*Header {
|
|
if x != nil {
|
|
return x.Headers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *Response) GetBody() []byte {
|
|
if x != nil {
|
|
return x.Body
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Header struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Header) Reset() {
|
|
*x = Header{}
|
|
mi := &file_http_http_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Header) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Header) ProtoMessage() {}
|
|
|
|
func (x *Header) ProtoReflect() protoreflect.Message {
|
|
mi := &file_http_http_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Header.ProtoReflect.Descriptor instead.
|
|
func (*Header) Descriptor() ([]byte, []int) {
|
|
return file_http_http_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *Header) GetKey() string {
|
|
if x != nil {
|
|
return x.Key
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Header) GetValue() string {
|
|
if x != nil {
|
|
return x.Value
|
|
}
|
|
return ""
|
|
}
|
|
|
|
var File_http_http_proto protoreflect.FileDescriptor
|
|
|
|
var file_http_http_proto_rawDesc = []byte{
|
|
0x0a, 0x0f, 0x68, 0x74, 0x74, 0x70, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x12, 0x0d, 0x68, 0x65, 0x74, 0x74, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31,
|
|
0x22, 0xf9, 0x01, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x2d, 0x0a, 0x06,
|
|
0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x15, 0x2e, 0x68,
|
|
0x65, 0x74, 0x74, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x4d, 0x65, 0x74,
|
|
0x68, 0x6f, 0x64, 0x52, 0x06, 0x6d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x33, 0x0a, 0x08, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e,
|
|
0x68, 0x65, 0x74, 0x74, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72,
|
|
0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c,
|
|
0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x75,
|
|
0x72, 0x6c, 0x12, 0x2f, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x18, 0x04, 0x20,
|
|
0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x74, 0x74, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70,
|
|
0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52, 0x07, 0x68, 0x65, 0x61, 0x64,
|
|
0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28,
|
|
0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x12, 0x33, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f,
|
|
0x6e, 0x73, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x17, 0x2e, 0x68, 0x65, 0x74, 0x74,
|
|
0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e,
|
|
0x73, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0xbd, 0x01, 0x0a,
|
|
0x08, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x12, 0x33, 0x0a, 0x08, 0x70, 0x72, 0x6f,
|
|
0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x17, 0x2e, 0x68, 0x65,
|
|
0x74, 0x74, 0x79, 0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x74,
|
|
0x6f, 0x63, 0x6f, 0x6c, 0x52, 0x08, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x16,
|
|
0x0a, 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
|
|
0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x1f, 0x0a, 0x0b, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73,
|
|
0x5f, 0x63, 0x6f, 0x64, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x05, 0x52, 0x0a, 0x73, 0x74, 0x61,
|
|
0x74, 0x75, 0x73, 0x43, 0x6f, 0x64, 0x65, 0x12, 0x2f, 0x0a, 0x07, 0x68, 0x65, 0x61, 0x64, 0x65,
|
|
0x72, 0x73, 0x18, 0x05, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x15, 0x2e, 0x68, 0x65, 0x74, 0x74, 0x79,
|
|
0x2e, 0x68, 0x74, 0x74, 0x70, 0x2e, 0x76, 0x31, 0x2e, 0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x52,
|
|
0x07, 0x68, 0x65, 0x61, 0x64, 0x65, 0x72, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x62, 0x6f, 0x64, 0x79,
|
|
0x18, 0x06, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x04, 0x62, 0x6f, 0x64, 0x79, 0x22, 0x30, 0x0a, 0x06,
|
|
0x48, 0x65, 0x61, 0x64, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
|
|
0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
|
|
0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x2a, 0xc1,
|
|
0x01, 0x0a, 0x06, 0x4d, 0x65, 0x74, 0x68, 0x6f, 0x64, 0x12, 0x16, 0x0a, 0x12, 0x4d, 0x45, 0x54,
|
|
0x48, 0x4f, 0x44, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10,
|
|
0x00, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x47, 0x45, 0x54, 0x10,
|
|
0x01, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x48, 0x45, 0x41, 0x44,
|
|
0x10, 0x02, 0x12, 0x0f, 0x0a, 0x0b, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x50, 0x4f, 0x53,
|
|
0x54, 0x10, 0x03, 0x12, 0x0e, 0x0a, 0x0a, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x50, 0x55,
|
|
0x54, 0x10, 0x04, 0x12, 0x11, 0x0a, 0x0d, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x44, 0x45,
|
|
0x4c, 0x45, 0x54, 0x45, 0x10, 0x05, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44,
|
|
0x5f, 0x43, 0x4f, 0x4e, 0x4e, 0x45, 0x43, 0x54, 0x10, 0x06, 0x12, 0x12, 0x0a, 0x0e, 0x4d, 0x45,
|
|
0x54, 0x48, 0x4f, 0x44, 0x5f, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x53, 0x10, 0x07, 0x12, 0x10,
|
|
0x0a, 0x0c, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x54, 0x52, 0x41, 0x43, 0x45, 0x10, 0x08,
|
|
0x12, 0x10, 0x0a, 0x0c, 0x4d, 0x45, 0x54, 0x48, 0x4f, 0x44, 0x5f, 0x50, 0x41, 0x54, 0x43, 0x48,
|
|
0x10, 0x09, 0x2a, 0x63, 0x0a, 0x08, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x63, 0x6f, 0x6c, 0x12, 0x18,
|
|
0x0a, 0x14, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45,
|
|
0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x54,
|
|
0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x31, 0x30, 0x10, 0x01, 0x12, 0x13, 0x0a,
|
|
0x0f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48, 0x54, 0x54, 0x50, 0x31, 0x31,
|
|
0x10, 0x02, 0x12, 0x13, 0x0a, 0x0f, 0x50, 0x52, 0x4f, 0x54, 0x4f, 0x43, 0x4f, 0x4c, 0x5f, 0x48,
|
|
0x54, 0x54, 0x50, 0x32, 0x30, 0x10, 0x03, 0x42, 0x24, 0x5a, 0x22, 0x67, 0x69, 0x74, 0x68, 0x75,
|
|
0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64, 0x73, 0x74, 0x6f, 0x74, 0x69, 0x6a, 0x6e, 0x2f, 0x68,
|
|
0x65, 0x74, 0x74, 0x79, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x68, 0x74, 0x74, 0x70, 0x62, 0x06, 0x70,
|
|
0x72, 0x6f, 0x74, 0x6f, 0x33,
|
|
}
|
|
|
|
var (
|
|
file_http_http_proto_rawDescOnce sync.Once
|
|
file_http_http_proto_rawDescData = file_http_http_proto_rawDesc
|
|
)
|
|
|
|
func file_http_http_proto_rawDescGZIP() []byte {
|
|
file_http_http_proto_rawDescOnce.Do(func() {
|
|
file_http_http_proto_rawDescData = protoimpl.X.CompressGZIP(file_http_http_proto_rawDescData)
|
|
})
|
|
return file_http_http_proto_rawDescData
|
|
}
|
|
|
|
var file_http_http_proto_enumTypes = make([]protoimpl.EnumInfo, 2)
|
|
var file_http_http_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
|
|
var file_http_http_proto_goTypes = []any{
|
|
(Method)(0), // 0: hetty.http.v1.Method
|
|
(Protocol)(0), // 1: hetty.http.v1.Protocol
|
|
(*Request)(nil), // 2: hetty.http.v1.Request
|
|
(*Response)(nil), // 3: hetty.http.v1.Response
|
|
(*Header)(nil), // 4: hetty.http.v1.Header
|
|
}
|
|
var file_http_http_proto_depIdxs = []int32{
|
|
0, // 0: hetty.http.v1.Request.method:type_name -> hetty.http.v1.Method
|
|
1, // 1: hetty.http.v1.Request.protocol:type_name -> hetty.http.v1.Protocol
|
|
4, // 2: hetty.http.v1.Request.headers:type_name -> hetty.http.v1.Header
|
|
3, // 3: hetty.http.v1.Request.response:type_name -> hetty.http.v1.Response
|
|
1, // 4: hetty.http.v1.Response.protocol:type_name -> hetty.http.v1.Protocol
|
|
4, // 5: hetty.http.v1.Response.headers:type_name -> hetty.http.v1.Header
|
|
6, // [6:6] is the sub-list for method output_type
|
|
6, // [6:6] is the sub-list for method input_type
|
|
6, // [6:6] is the sub-list for extension type_name
|
|
6, // [6:6] is the sub-list for extension extendee
|
|
0, // [0:6] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_http_http_proto_init() }
|
|
func file_http_http_proto_init() {
|
|
if File_http_http_proto != nil {
|
|
return
|
|
}
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: file_http_http_proto_rawDesc,
|
|
NumEnums: 2,
|
|
NumMessages: 3,
|
|
NumExtensions: 0,
|
|
NumServices: 0,
|
|
},
|
|
GoTypes: file_http_http_proto_goTypes,
|
|
DependencyIndexes: file_http_http_proto_depIdxs,
|
|
EnumInfos: file_http_http_proto_enumTypes,
|
|
MessageInfos: file_http_http_proto_msgTypes,
|
|
}.Build()
|
|
File_http_http_proto = out.File
|
|
file_http_http_proto_rawDesc = nil
|
|
file_http_http_proto_goTypes = nil
|
|
file_http_http_proto_depIdxs = nil
|
|
}
|