Skip to content

Commit

Permalink
docs: remove references to defunct build method
Browse files Browse the repository at this point in the history
For Response and Request `Builder::body` is the consuming method, not `Builder::build`.

`Builder::build` was removed from request in commit #4bc29fb and response never had it (ref #4bc29fb).
  • Loading branch information
IsaacCloos authored and seanmonstar committed May 19, 2023
1 parent 7b3c506 commit 20633e5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 15 deletions.
9 changes: 0 additions & 9 deletions src/request.rs
Original file line number Diff line number Diff line change
Expand Up @@ -761,9 +761,6 @@ impl Builder {

/// Set the HTTP method for this request.
///
/// This function will configure the HTTP method of the `Request` that will
/// be returned from `Builder::build`.
///
/// By default this is `GET`.
///
/// # Examples
Expand Down Expand Up @@ -809,9 +806,6 @@ impl Builder {

/// Set the URI for this request.
///
/// This function will configure the URI of the `Request` that will
/// be returned from `Builder::build`.
///
/// By default this is `/`.
///
/// # Examples
Expand Down Expand Up @@ -856,9 +850,6 @@ impl Builder {

/// Set the HTTP version for this request.
///
/// This function will configure the HTTP version of the `Request` that
/// will be returned from `Builder::build`.
///
/// By default this is HTTP/1.1
///
/// # Examples
Expand Down
6 changes: 0 additions & 6 deletions src/response.rs
Original file line number Diff line number Diff line change
Expand Up @@ -546,9 +546,6 @@ impl Builder {

/// Set the HTTP status for this response.
///
/// This function will configure the HTTP status code of the `Response` that
/// will be returned from `Builder::build`.
///
/// By default this is `200`.
///
/// # Examples
Expand All @@ -574,9 +571,6 @@ impl Builder {

/// Set the HTTP version for this response.
///
/// This function will configure the HTTP version of the `Response` that
/// will be returned from `Builder::build`.
///
/// By default this is HTTP/1.1
///
/// # Examples
Expand Down

0 comments on commit 20633e5

Please sign in to comment.