Commit 1a3fa80f authored by Jan Winkelmann's avatar Jan Winkelmann

Add docs for `"commands".Command.Run`

To clarify that if you want to access the request body after writing need to use
multipart requests.

License: MIT
Signed-off-by: default avatarJan Winkelmann <j-winkelmann@tuhh.de>
parent d5c716a3
......@@ -55,6 +55,11 @@ type Command struct {
Options []Option
Arguments []Argument
PreRun func(req Request) error
// Run is the function that processes the request to generate a response.
// Note that when executing the command over the HTTP API you can only read
// after writing when using multipart requests. The request body will not be
// available for reading after the HTTP connection has been written to.
Run Function
PostRun Function
Marshalers map[EncodingType]Marshaler
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment