File tree Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Expand file tree Collapse file tree 1 file changed +2
-17
lines changed Original file line number Diff line number Diff line change @@ -126,23 +126,8 @@ impl Client {
126
126
///
127
127
/// [`ClientBuilder`]: struct.ClientBuilder.html
128
128
/// [`.stream()`]: #method.stream
129
- pub fn for_url < U : r:: IntoUrl > ( url : U ) -> Result < ClientBuilder > {
130
- let url = url
131
- . into_url ( )
132
- . map_err ( |e| Error :: HttpRequest ( Box :: new ( e) ) ) ?;
133
- Ok ( ClientBuilder {
134
- url : url,
135
- headers : r:: header:: HeaderMap :: new ( ) ,
136
- } )
137
- }
138
-
139
- /// Construct a new `Client` (via a [`ClientBuilder`]). This will not
140
- /// perform any network activity until [`.stream()`] is called.
141
- ///
142
- /// [`ClientBuilder`]: struct.ClientBuilder.html
143
- /// [`.stream()`]: #method.stream
144
- pub fn for_str ( str_url : & str ) -> Result < ClientBuilder > {
145
- let url = Url :: parse ( str_url) . map_err ( |e| Error :: HttpRequest ( Box :: new ( e) ) ) ?;
129
+ pub fn for_url ( url : & str ) -> Result < ClientBuilder > {
130
+ let url = Url :: parse ( url) . map_err ( |e| Error :: HttpRequest ( Box :: new ( e) ) ) ?;
146
131
Ok ( ClientBuilder {
147
132
url : url,
148
133
headers : r:: header:: HeaderMap :: new ( ) ,
You can’t perform that action at this time.
0 commit comments