Skip to content

Commit 20633e5

Browse files
IsaacCloosseanmonstar
authored andcommitted
docs: remove references to defunct build method
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).
1 parent 7b3c506 commit 20633e5

File tree

2 files changed

+0
-15
lines changed

2 files changed

+0
-15
lines changed

src/request.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -761,9 +761,6 @@ impl Builder {
761761

762762
/// Set the HTTP method for this request.
763763
///
764-
/// This function will configure the HTTP method of the `Request` that will
765-
/// be returned from `Builder::build`.
766-
///
767764
/// By default this is `GET`.
768765
///
769766
/// # Examples
@@ -809,9 +806,6 @@ impl Builder {
809806

810807
/// Set the URI for this request.
811808
///
812-
/// This function will configure the URI of the `Request` that will
813-
/// be returned from `Builder::build`.
814-
///
815809
/// By default this is `/`.
816810
///
817811
/// # Examples
@@ -856,9 +850,6 @@ impl Builder {
856850

857851
/// Set the HTTP version for this request.
858852
///
859-
/// This function will configure the HTTP version of the `Request` that
860-
/// will be returned from `Builder::build`.
861-
///
862853
/// By default this is HTTP/1.1
863854
///
864855
/// # Examples

src/response.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -546,9 +546,6 @@ impl Builder {
546546

547547
/// Set the HTTP status for this response.
548548
///
549-
/// This function will configure the HTTP status code of the `Response` that
550-
/// will be returned from `Builder::build`.
551-
///
552549
/// By default this is `200`.
553550
///
554551
/// # Examples
@@ -574,9 +571,6 @@ impl Builder {
574571

575572
/// Set the HTTP version for this response.
576573
///
577-
/// This function will configure the HTTP version of the `Response` that
578-
/// will be returned from `Builder::build`.
579-
///
580574
/// By default this is HTTP/1.1
581575
///
582576
/// # Examples

0 commit comments

Comments
 (0)