...

Package http

import "google.golang.org/genproto/googleapis/rpc/http"
Overview
Index

Overview ▾

Variables

var File_google_rpc_http_proto protoreflect.FileDescriptor

type HttpHeader

Represents an HTTP header.

type HttpHeader struct {

    // The HTTP header key. It is case insensitive.
    Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
    // The HTTP header value.
    Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
    // contains filtered or unexported fields
}

func (*HttpHeader) Descriptor

func (*HttpHeader) Descriptor() ([]byte, []int)

Deprecated: Use HttpHeader.ProtoReflect.Descriptor instead.

func (*HttpHeader) GetKey

func (x *HttpHeader) GetKey() string

func (*HttpHeader) GetValue

func (x *HttpHeader) GetValue() string

func (*HttpHeader) ProtoMessage

func (*HttpHeader) ProtoMessage()

func (*HttpHeader) ProtoReflect

func (x *HttpHeader) ProtoReflect() protoreflect.Message

func (*HttpHeader) Reset

func (x *HttpHeader) Reset()

func (*HttpHeader) String

func (x *HttpHeader) String() string

type HttpRequest

Represents an HTTP request.

type HttpRequest struct {

    // The HTTP request method.
    Method string `protobuf:"bytes,1,opt,name=method,proto3" json:"method,omitempty"`
    // The HTTP request URI.
    Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"`
    // The HTTP request headers. The ordering of the headers is significant.
    // Multiple headers with the same key may present for the request.
    Headers []*HttpHeader `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"`
    // The HTTP request body. If the body is not expected, it should be empty.
    Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
    // contains filtered or unexported fields
}

func (*HttpRequest) Descriptor

func (*HttpRequest) Descriptor() ([]byte, []int)

Deprecated: Use HttpRequest.ProtoReflect.Descriptor instead.

func (*HttpRequest) GetBody

func (x *HttpRequest) GetBody() []byte

func (*HttpRequest) GetHeaders

func (x *HttpRequest) GetHeaders() []*HttpHeader

func (*HttpRequest) GetMethod

func (x *HttpRequest) GetMethod() string

func (*HttpRequest) GetUri

func (x *HttpRequest) GetUri() string

func (*HttpRequest) ProtoMessage

func (*HttpRequest) ProtoMessage()

func (*HttpRequest) ProtoReflect

func (x *HttpRequest) ProtoReflect() protoreflect.Message

func (*HttpRequest) Reset

func (x *HttpRequest) Reset()

func (*HttpRequest) String

func (x *HttpRequest) String() string

type HttpResponse

Represents an HTTP response.

type HttpResponse struct {

    // The HTTP status code, such as 200 or 404.
    Status int32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
    // The HTTP reason phrase, such as "OK" or "Not Found".
    Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"`
    // The HTTP response headers. The ordering of the headers is significant.
    // Multiple headers with the same key may present for the response.
    Headers []*HttpHeader `protobuf:"bytes,3,rep,name=headers,proto3" json:"headers,omitempty"`
    // The HTTP response body. If the body is not expected, it should be empty.
    Body []byte `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
    // contains filtered or unexported fields
}

func (*HttpResponse) Descriptor

func (*HttpResponse) Descriptor() ([]byte, []int)

Deprecated: Use HttpResponse.ProtoReflect.Descriptor instead.

func (*HttpResponse) GetBody

func (x *HttpResponse) GetBody() []byte

func (*HttpResponse) GetHeaders

func (x *HttpResponse) GetHeaders() []*HttpHeader

func (*HttpResponse) GetReason

func (x *HttpResponse) GetReason() string

func (*HttpResponse) GetStatus

func (x *HttpResponse) GetStatus() int32

func (*HttpResponse) ProtoMessage

func (*HttpResponse) ProtoMessage()

func (*HttpResponse) ProtoReflect

func (x *HttpResponse) ProtoReflect() protoreflect.Message

func (*HttpResponse) Reset

func (x *HttpResponse) Reset()

func (*HttpResponse) String

func (x *HttpResponse) String() string