Documentation
¶
Index ¶
- Variables
- type CacheSettings
- func (*CacheSettings) Descriptor() ([]byte, []int)deprecated
- func (x *CacheSettings) GetMaxAge() *durationpb.Duration
- func (x *CacheSettings) GetStore() bool
- func (*CacheSettings) ProtoMessage()
- func (x *CacheSettings) ProtoReflect() protoreflect.Message
- func (x *CacheSettings) Reset()
- func (x *CacheSettings) String() string
- type Request
- func (*Request) Descriptor() ([]byte, []int)deprecated
- func (x *Request) GetBody() []byte
- func (x *Request) GetCacheSettings() *CacheSettings
- func (x *Request) GetHeaders() map[string]string
- func (x *Request) GetMethod() string
- func (x *Request) GetTimeout() *durationpb.Duration
- func (x *Request) GetUrl() string
- func (*Request) ProtoMessage()
- func (x *Request) ProtoReflect() protoreflect.Message
- func (x *Request) Reset()
- func (x *Request) String() string
- type Response
- func (*Response) Descriptor() ([]byte, []int)deprecated
- func (x *Response) GetBody() []byte
- func (x *Response) GetHeaders() map[string]string
- func (x *Response) GetStatusCode() uint32
- func (*Response) ProtoMessage()
- func (x *Response) ProtoReflect() protoreflect.Message
- func (x *Response) Reset()
- func (x *Response) String() string
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) GetCacheSettings ¶
func (x *Request) GetCacheSettings() *CacheSettings
func (*Request) GetHeaders ¶
func (*Request) GetTimeout ¶ added in v0.9.5
func (x *Request) GetTimeout() *durationpb.Duration
func (*Request) ProtoMessage ¶
func (*Request) ProtoMessage()
func (*Request) ProtoReflect ¶
func (x *Request) ProtoReflect() protoreflect.Message
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) GetHeaders ¶
func (*Response) GetStatusCode ¶
func (*Response) ProtoMessage ¶
func (*Response) ProtoMessage()
func (*Response) ProtoReflect ¶
func (x *Response) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.