Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
DefaultHeaders = http.Header{}
)
Functions ¶
This section is empty.
Types ¶
type HTTPUpgradeHandler ¶
type HTTPUpgradeHandler struct { Handler // contains filtered or unexported fields }
HTTPUpgradeHandler is a net/http.Handler which is responsible for incomming HTTP request upgrade process and handling the upgraded request with some Handler which works only with websockets.
func NewHTTPUpgradeHandler ¶
func NewHTTPUpgradeHandler(h Handler, l loggers.Logger) *HTTPUpgradeHandler
func (*HTTPUpgradeHandler) ServeHTTP ¶
func (h *HTTPUpgradeHandler) ServeHTTP(rwc http.ResponseWriter, r *http.Request)
type HandlerFunc ¶
type HandlerFunc func(rwc io.ReadWriteCloser, r *http.Request)
func (HandlerFunc) ServeWebsocket ¶
func (hf HandlerFunc) ServeWebsocket(rwc io.ReadWriteCloser, r *http.Request)
type ReadWriteCloser ¶
func NewReadWriteCloser ¶
func NewReadWriteCloser(r *Reader, w *Writer, c io.Closer) ReadWriteCloser
Source Files ¶
Click to show internal directories.
Click to hide internal directories.