reqwest.body

reqwest.body

reqwest.body

Function

Set the string request body.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNullRequest body content, which will be converted to a string first when called.

Return value

TypeDescription
ReqwestReturns the new request builder.

Example

Notes

  • Body, json, form, and multipart will all set the request body; the last request body set in the same request will take effect.