http

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2025 License: MIT Imports: 7 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 {
	Store  bool                 `protobuf:"varint,1,opt,name=store,proto3" json:"store,omitempty"`                // If true, cache the response.
	MaxAge *durationpb.Duration `protobuf:"bytes,2,opt,name=max_age,json=maxAge,proto3" json:"max_age,omitempty"` // Maximum age of a cached response. If zero, do not attempt to read from cache
	// 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) GetMaxAge added in v0.9.5

func (x *CacheSettings) GetMaxAge() *durationpb.Duration

func (*CacheSettings) GetStore added in v0.9.5

func (x *CacheSettings) GetStore() 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"`
	Timeout       *durationpb.Duration `protobuf:"bytes,5,opt,name=timeout,proto3" json:"timeout,omitempty"` // Request timeout duration
	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) GetTimeout added in v0.9.5

func (x *Request) GetTimeout() *durationpb.Duration

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