Skip to content

Commit 9f06fd2

Browse files
authored
docs: improve description of JSON method (#3082)
1 parent 5bdb2f0 commit 9f06fd2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/async_impl/request.rs

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

450450
/// Send a JSON body.
451451
///
452+
/// Serializes the value to JSON and sets resulting bytes as the body.
453+
///
454+
/// Sets Content-Type header to application/json unless the header is already set.
455+
///
452456
/// # Optional
453457
///
454458
/// This requires the optional `json` feature enabled.

0 commit comments

Comments
 (0)