http

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2026 License: MIT Imports: 7 Imported by: 6 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 HeaderValues added in v0.9.7

type HeaderValues struct {
	Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

HeaderValues represents multiple values for a single header key

func (*HeaderValues) Descriptor deprecated added in v0.9.7

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

Deprecated: Use HeaderValues.ProtoReflect.Descriptor instead.

func (*HeaderValues) GetValues added in v0.9.7

func (x *HeaderValues) GetValues() []string

func (*HeaderValues) ProtoMessage added in v0.9.7

func (*HeaderValues) ProtoMessage()

func (*HeaderValues) ProtoReflect added in v0.9.7

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

func (*HeaderValues) Reset added in v0.9.7

func (x *HeaderValues) Reset()

func (*HeaderValues) String added in v0.9.7

func (x *HeaderValues) 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"`
	// Deprecated: Marked as deprecated in capabilities/networking/http/v1alpha/client.proto.
	Headers map[string]string `` // Deprecated: use multi_headers
	/* 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"`
	MultiHeaders  map[string]*HeaderValues `` /* 171-byte string literal not displayed */
	// 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 deprecated

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

Deprecated: Marked as deprecated in capabilities/networking/http/v1alpha/client.proto.

func (*Request) GetMethod

func (x *Request) GetMethod() string

func (*Request) GetMultiHeaders added in v0.9.7

func (x *Request) GetMultiHeaders() map[string]*HeaderValues

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"`
	// Deprecated: Marked as deprecated in capabilities/networking/http/v1alpha/client.proto.
	Headers map[string]string `` // Deprecated: use multi_headers
	/* 141-byte string literal not displayed */
	Body         []byte                   `protobuf:"bytes,3,opt,name=body,proto3" json:"body,omitempty"`
	MultiHeaders map[string]*HeaderValues `` /* 171-byte string literal not displayed */
	// 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 deprecated

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

Deprecated: Marked as deprecated in capabilities/networking/http/v1alpha/client.proto.

func (*Response) GetMultiHeaders added in v0.9.7

func (x *Response) GetMultiHeaders() map[string]*HeaderValues

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