reqwest.json

reqwest.json

reqwest.json

Function

Set the JSON request body.

Syntax

Parameters

ParametersTypeRequiredDefault valueDescription
valueAnyNoNullThe BT value to convert to JSON.

Return value

TypeDescription
ReqwestReturns the new request builder.

Example

Notes

  • BT Array/Object is converted to JSON Array/Object; other library objects are written to JSON as strings.
  • Body, json, form, and multipart will all set the request body; the last request body set in the same request will take effect.