http

package
v0.9.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2025 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_capabilities_networking_http_v1alpha_client_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CacheSettings

type CacheSettings struct {
	ReadFromCache bool  `protobuf:"varint,1,opt,name=read_from_cache,json=readFromCache,proto3" json:"read_from_cache,omitempty"` // If true, attempt to read a cached response for the request.
	MaxAgeMs      int32 `protobuf:"varint,2,opt,name=max_age_ms,json=maxAgeMs,proto3" json:"max_age_ms,omitempty"`                // Maximum age of a cached response in milliseconds.
	// contains filtered or unexported fields
}

CacheSettings defines cache control options for outbound HTTP requests.

func (*CacheSettings) Descriptor deprecated

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

Deprecated: Use CacheSettings.ProtoReflect.Descriptor instead.

func (*CacheSettings) GetMaxAgeMs added in v0.9.0

func (x *CacheSettings) GetMaxAgeMs() int32

func (*CacheSettings) GetReadFromCache

func (x *CacheSettings) GetReadFromCache() bool

func (*CacheSettings) ProtoMessage

func (*CacheSettings) ProtoMessage()

func (*CacheSettings) ProtoReflect

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

func (*CacheSettings) Reset

func (x *CacheSettings) Reset()

func (*CacheSettings) String

func (x *CacheSettings) String() string

type Request

type Request struct {
	Url           string            `protobuf:"bytes,1,opt,name=url,proto3" json:"url,omitempty"`
	Method        string            `protobuf:"bytes,2,opt,name=method,proto3" json:"method,omitempty"`
	Headers       map[string]string `` /* 141-byte string literal not displayed */
	Body          []byte            `protobuf:"bytes,4,opt,name=body,proto3" json:"body,omitempty"`
	TimeoutMs     int32             `protobuf:"varint,5,opt,name=timeout_ms,json=timeoutMs,proto3" json:"timeout_ms,omitempty"`
	CacheSettings *CacheSettings    `protobuf:"bytes,6,opt,name=cache_settings,json=cacheSettings,proto3" json:"cache_settings,omitempty"`
	// contains filtered or unexported fields
}

func (*Request) Descriptor deprecated

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

Deprecated: Use Request.ProtoReflect.Descriptor instead.

func (*Request) GetBody

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

func (*Request) GetCacheSettings

func (x *Request) GetCacheSettings() *CacheSettings

func (*Request) GetHeaders

func (x *Request) GetHeaders() map[string]string

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetTimeoutMs

func (x *Request) GetTimeoutMs() int32

func (*Request) GetUrl

func (x *Request) GetUrl() string

func (*Request) ProtoMessage

func (*Request) ProtoMessage()

func (*Request) ProtoReflect

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

func (*Request) Reset

func (x *Request) Reset()

func (*Request) String

func (x *Request) String() string

type Response

type Response struct {
	StatusCode uint32            `protobuf:"varint,1,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	Headers    map[string]string `` /* 141-byte string literal not displayed */
	Body       []byte            `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	// contains filtered or unexported fields
}

func (*Response) Descriptor deprecated

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

Deprecated: Use Response.ProtoReflect.Descriptor instead.

func (*Response) GetBody

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

func (*Response) GetHeaders

func (x *Response) GetHeaders() map[string]string

func (*Response) GetStatusCode

func (x *Response) GetStatusCode() uint32

func (*Response) ProtoMessage

func (*Response) ProtoMessage()

func (*Response) ProtoReflect

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

func (*Response) Reset

func (x *Response) Reset()

func (*Response) String

func (x *Response) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL