responsewriter

package
v1.25.0 Latest Latest
Warning

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

Go to latest
Published: May 6, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 modules, 0 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_http_responsewriter_responsewriter_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Header struct {

	// key is a element key in a key value pair
	Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// values are a list of strings coresponding to the key
	Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (*Header) Descriptor deprecated

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

Deprecated: Use Header.ProtoReflect.Descriptor instead.

func (*Header) GetKey

func (x *Header) GetKey() string

func (*Header) GetValues

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

func (*Header) ProtoMessage

func (*Header) ProtoMessage()

func (*Header) ProtoReflect

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

func (*Header) Reset

func (x *Header) Reset()

func (*Header) String

func (x *Header) String() string

type HijackResponse

type HijackResponse struct {

	// local_network is the name of the network (for example, "tcp", "udp")
	LocalNetwork string `protobuf:"bytes,1,opt,name=local_network,json=localNetwork,proto3" json:"local_network,omitempty"`
	// local_string is string form of address
	LocalString string `protobuf:"bytes,2,opt,name=local_string,json=localString,proto3" json:"local_string,omitempty"`
	// remote_network is the name of the network (for example, "tcp", "udp")
	RemoteNetwork string `protobuf:"bytes,3,opt,name=remote_network,json=remoteNetwork,proto3" json:"remote_network,omitempty"`
	// remote_string is string form of address
	RemoteString string `protobuf:"bytes,4,opt,name=remote_string,json=remoteString,proto3" json:"remote_string,omitempty"`
	// server_addr is the address of the gRPC server serving the Conn, Reader
	// and Writer services which facilitate Hijacking
	ServerAddr string `protobuf:"bytes,5,opt,name=server_addr,json=serverAddr,proto3" json:"server_addr,omitempty"`
	// contains filtered or unexported fields
}

func (*HijackResponse) Descriptor deprecated

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

Deprecated: Use HijackResponse.ProtoReflect.Descriptor instead.

func (*HijackResponse) GetLocalNetwork

func (x *HijackResponse) GetLocalNetwork() string

func (*HijackResponse) GetLocalString

func (x *HijackResponse) GetLocalString() string

func (*HijackResponse) GetRemoteNetwork

func (x *HijackResponse) GetRemoteNetwork() string

func (*HijackResponse) GetRemoteString

func (x *HijackResponse) GetRemoteString() string

func (*HijackResponse) GetServerAddr

func (x *HijackResponse) GetServerAddr() string

func (*HijackResponse) ProtoMessage

func (*HijackResponse) ProtoMessage()

func (*HijackResponse) ProtoReflect

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

func (*HijackResponse) Reset

func (x *HijackResponse) Reset()

func (*HijackResponse) String

func (x *HijackResponse) String() string

type WriteHeaderRequest

type WriteHeaderRequest struct {

	// headers represents the key-value pairs in an HTTP header
	Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	// status_code must be a valid HTTP 1xx-5xx status code
	StatusCode int32 `protobuf:"varint,2,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteHeaderRequest) Descriptor deprecated

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

Deprecated: Use WriteHeaderRequest.ProtoReflect.Descriptor instead.

func (*WriteHeaderRequest) GetHeaders

func (x *WriteHeaderRequest) GetHeaders() []*Header

func (*WriteHeaderRequest) GetStatusCode

func (x *WriteHeaderRequest) GetStatusCode() int32

func (*WriteHeaderRequest) ProtoMessage

func (*WriteHeaderRequest) ProtoMessage()

func (*WriteHeaderRequest) ProtoReflect

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

func (*WriteHeaderRequest) Reset

func (x *WriteHeaderRequest) Reset()

func (*WriteHeaderRequest) String

func (x *WriteHeaderRequest) String() string

type WriteRequest

type WriteRequest struct {

	// headers represents the key-value pairs in an HTTP header
	Headers []*Header `protobuf:"bytes,1,rep,name=headers,proto3" json:"headers,omitempty"`
	// payload is the write request in bytes
	Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteRequest) Descriptor deprecated

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

Deprecated: Use WriteRequest.ProtoReflect.Descriptor instead.

func (*WriteRequest) GetHeaders

func (x *WriteRequest) GetHeaders() []*Header

func (*WriteRequest) GetPayload

func (x *WriteRequest) GetPayload() []byte

func (*WriteRequest) ProtoMessage

func (*WriteRequest) ProtoMessage()

func (*WriteRequest) ProtoReflect

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

func (*WriteRequest) Reset

func (x *WriteRequest) Reset()

func (*WriteRequest) String

func (x *WriteRequest) String() string

type WriteResponse

type WriteResponse struct {

	// written is the number of bytes written in body
	Written int32 `protobuf:"varint,1,opt,name=written,proto3" json:"written,omitempty"`
	// contains filtered or unexported fields
}

func (*WriteResponse) Descriptor deprecated

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

Deprecated: Use WriteResponse.ProtoReflect.Descriptor instead.

func (*WriteResponse) GetWritten

func (x *WriteResponse) GetWritten() int32

func (*WriteResponse) ProtoMessage

func (*WriteResponse) ProtoMessage()

func (*WriteResponse) ProtoReflect

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

func (*WriteResponse) Reset

func (x *WriteResponse) Reset()

func (*WriteResponse) String

func (x *WriteResponse) String() string

Jump to

Keyboard shortcuts

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