Documentation
¶
Overview ¶
Package wsupstream is the one WebSocket test upstream (ADR-0181): an httptest server over x/net/websocket that records each request's ContentLength and serves the query parameter mode.
- echo (the default) replies echo:<frame> to every frame;
- sink replies echo:<frame> only to a frame starting probe:;
- push echoes like echo and also sends push:<n> every `every` (a duration query parameter).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
URL string
// contains filtered or unexported fields
}
Server is a running WebSocket test upstream, closed by the test's Cleanup.
func (*Server) ContentLengths ¶
ContentLengths returns the ContentLength of every request received, in arrival order.
Click to show internal directories.
Click to hide internal directories.