Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChanServer ¶
type ChanServer struct {
Addr net.Addr
Reqs <-chan *http.Request
// contains filtered or unexported fields
}
ChanServer listens for requests and sends them on a channel.
func (*ChanServer) SetStatusCode ¶ added in v1.1.0
func (ch *ChanServer) SetStatusCode(status int)
SetStatusCode changes the HTTP status code in the server's response.
Click to show internal directories.
Click to hide internal directories.