Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTPHandlerPush ¶
func HTTPHandlerPush(w http.ResponseWriter, req *http.Request)
func HTTPHandlerPushPromise ¶
func HTTPHandlerPushPromise(w http.ResponseWriter, req *http.Request)
Used for monitoring, will send push promise messages. Messages will need to be held in a map, to be retrieved by the handler.
Types ¶
type Listener ¶
type Listener interface { // Close the server. All active sessions will be closed. Close() error // Addr returns the local network addr that the server is listening on. Addr() net.Addr // Accept returns new sessions. It should be called in a loop. Accept(context.Context) (Session, error) }
A Listener for incoming H2 connections, acting as server. Implements a similar interface with Quic
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
func (*Session) AcceptStream ¶
Click to show internal directories.
Click to hide internal directories.