Module curl
Available on crate features
http and std only.Expand description
Convert HTTP requests with or without their payload into a valid curl command.
Proxy export reads the middleware-visible
ProxyRoute. Compose
ProxyRoutesLayer after all proxy
route selectors and before exporting when inputs may carry an ordered route
plan.
Structs§
- Curl
Export Options - Policies used while converting an HTTP request into curl arguments.
- Curl
Payload Requires Stdin - Error returned when the selected script policies cannot embed a payload losslessly.
- Prepared
Curl Command - A
curlprocess command together with bytes that must be written to its stdin.
Enums§
- Curl
Script Compatibility - Compatibility target for an exported curl command string.
- Curl
Script Payload Mode - How a request payload is referenced by an exported curl command string.
Functions§
- cmd_
for_ request_ parts - Create a
curlCommandfor the givenHttpRequestParts. - cmd_
for_ request_ parts_ and_ payload - Create a
curlCommandfor the givenHttpRequestPartsand payload bytes. - cmd_
for_ request_ parts_ and_ payload_ with_ options - Create a
curlCommandwith an inline payload and explicit policies. - cmd_
for_ request_ parts_ with_ options - Create a
curlCommandusing explicit export policies. - cmd_
string_ for_ request_ parts - Create a
curlcommand string for the givenHttpRequestParts. - cmd_
string_ for_ request_ parts_ with_ options - Create a
curlcommand string using explicit export policies. - prepare_
cmd_ for_ request_ parts_ and_ payload - Prepare a shell-independent
curlcommand that receives its payload on stdin. - prepare_
cmd_ for_ request_ parts_ and_ payload_ with_ options - Prepare a shell-independent curl command using explicit export policies.
- try_
cmd_ string_ for_ request_ parts_ and_ payload - Create a pure
curlcommand string for the given request and inline payload. - try_
cmd_ string_ for_ request_ parts_ and_ payload_ with_ options - Create a curl command string using explicit request and payload policies.