Documentation ¶
Index ¶
- Constants
- Variables
- func FillRequestHeadersFromCtxVar(ctx context.Context, headers mosnhttp.RequestHeader, remoteAddr net.Addr)
- func NewConnPool(ctx context.Context, host types.Host) types.ConnectionPool
- func SetDefaultStreamConfig(c StreamConfig)
- type StreamConfig
- type StreamConnFactory
- func (f *StreamConnFactory) CreateBiDirectStream(context context.Context, connection types.ClientConnection, ...) types.ClientStreamConnection
- func (f *StreamConnFactory) CreateClientStream(context context.Context, connection types.ClientConnection, ...) types.ClientStreamConnection
- func (f *StreamConnFactory) CreateServerStream(context context.Context, connection api.Connection, ...) types.ServerStreamConnection
- func (f *StreamConnFactory) ProtocolMatch(context context.Context, prot string, magic []byte) error
Constants ¶
View Source
const ( VarRequestMethod = "http_request_method" VarRequestLength = "http_request_length" )
Variables ¶
View Source
var ( HKConnection = []byte("Connection") // header key 'Connection' HVKeepAlive = []byte("keep-alive") // header value 'keep-alive' )
Functions ¶
func FillRequestHeadersFromCtxVar ¶ added in v0.20.0
func NewConnPool ¶
func SetDefaultStreamConfig ¶ added in v0.26.0
func SetDefaultStreamConfig(c StreamConfig)
SetDefaultStreamConfig can change the default config for http. Call this function before mosn service start. DONOT call it when mosn is serving.
Types ¶
type StreamConfig ¶ added in v0.22.0
type StreamConnFactory ¶ added in v0.26.0
type StreamConnFactory struct{}
func (*StreamConnFactory) CreateBiDirectStream ¶ added in v0.26.0
func (f *StreamConnFactory) CreateBiDirectStream(context context.Context, connection types.ClientConnection, clientCallbacks types.StreamConnectionEventListener, serverCallbacks types.ServerStreamConnectionEventListener) types.ClientStreamConnection
func (*StreamConnFactory) CreateClientStream ¶ added in v0.26.0
func (f *StreamConnFactory) CreateClientStream(context context.Context, connection types.ClientConnection, streamConnCallbacks types.StreamConnectionEventListener, connCallbacks api.ConnectionEventListener) types.ClientStreamConnection
func (*StreamConnFactory) CreateServerStream ¶ added in v0.26.0
func (f *StreamConnFactory) CreateServerStream(context context.Context, connection api.Connection, callbacks types.ServerStreamConnectionEventListener) types.ServerStreamConnection
func (*StreamConnFactory) ProtocolMatch ¶ added in v0.26.0
Click to show internal directories.
Click to hide internal directories.