Skip to content

Commit 7b752d8

Browse files
committed
docs(request): document JSON content type
1 parent 7a5f07e commit 7b752d8

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/client/request.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,10 @@ impl RequestBuilder {
473473

474474
/// Send a JSON body.
475475
///
476+
/// Serializes the value as JSON and sets the resulting bytes as the request body.
477+
///
478+
/// Sets `Content-Type` to `application/json` unless it is already set.
479+
///
476480
/// # Optional
477481
///
478482
/// This requires the optional `json` feature enabled.

0 commit comments

Comments
 (0)