Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Format ¶
Format formats the given HTTP request as a curl command.
This will include all headers, and also the request body if GetBody is set. Notes:
* Header names are quoted using fmt.Sprintf, so it may not always be correct for shell quoting. * The URL is only quoted and not escaped, so URLs with single quotes will not currently work.
The client parameter is optional and is used to find cookies from the cookie jar.
Types ¶
Click to show internal directories.
Click to hide internal directories.