reqwest.method

reqwest.method

reqwest.method

Function

Set the HTTP request method.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
methodStringNoGETHTTP method, will be converted to uppercase.

Return value

TypeDescription
ReqwestReturns the new request builder.

Example

Notes

  • The method name will be verified by reqwest::Method when sending().