http

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 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.
	StoreInCache  bool  `protobuf:"varint,2,opt,name=store_in_cache,json=storeInCache,proto3" json:"store_in_cache,omitempty"`    // If true, store the response in cache for the given TTL.
	TtlMs         int32 `protobuf:"varint,3,opt,name=ttl_ms,json=ttlMs,proto3" json:"ttl_ms,omitempty"`                           // Time-to-live for the cache entry in milliseconds.
	// contains filtered or unexported fields
}

func (*CacheSettings) Descriptor deprecated

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

Deprecated: Use CacheSettings.ProtoReflect.Descriptor instead.

func (*CacheSettings) GetReadFromCache

func (x *CacheSettings) GetReadFromCache() bool

func (*CacheSettings) GetStoreInCache

func (x *CacheSettings) GetStoreInCache() bool

func (*CacheSettings) GetTtlMs

func (x *CacheSettings) GetTtlMs() int32

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