Documentation
¶
Overview ¶
Package httpserver defines the HTTPServer type that listens to requests over HTTP.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPServer ¶
type HTTPServer struct {
// contains filtered or unexported fields
}
HTTPServer defines an HTTP server that will offer an endpoint to execute a requester.
func (*HTTPServer) Addr ¶
func (srv *HTTPServer) Addr() string
Addr returns the server's listening address.
func (*HTTPServer) ServeRequester ¶
ServeRequester starts the HTTP server and listens on the configured port for incoming requests. The provided function fn will be executed for each such requests.
Click to show internal directories.
Click to hide internal directories.