OnRequest is a method receiving a request and is able to respond.
(request ServerRequest, response ServerResponse)
| 4 | type RequestHandler interface { |
| 5 | // OnRequest is a method receiving a request and is able to respond. |
| 6 | OnRequest(request ServerRequest, response ServerResponse) error |
| 7 | } |
| 8 | |
| 9 | // ServerRequest is a testdata structure providing decoding from the raw request. |