An HTTPServer will emit the requests it receives from HTTP clients, and the server should receive the responses to forward to those clients.
To use this channel, you first 'recv' a client request, and then you 'pub' the response, which the Chan will forward to the HTTP client.
Note that you have to do 'pub' each specific response for each client request.
-
host
(string) -
port
(int) -
parsejson
(bool)
-
path
(string) -
form
(url.Values) is the parsed form values. -
headers
(map[string][]string) is the map from header name to header values. -
method
(string) is the HTTP request method. -
body
(interface {}) is the request body (if any).This body is parsed as JSON if ParsedJSON is true.
-
error
(string) is a generic error message (if any).
-
headers
(map[string][]string) is the map from header name to header values. -
body
(interface {}) is the response body. -
statuscode
(int) -
serialization
(*dsl.Serialization) is the serialization used to make a string representation of the body.