File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,6 @@ impl fmt::Display for Method {
108
108
/// Represents an API request. This can be customized before
109
109
/// sending but only sent once.
110
110
pub struct ApiRequest {
111
- url : String ,
112
111
handle : r2d2:: PooledConnection < CurlConnectionManager > ,
113
112
headers : curl:: easy:: List ,
114
113
is_authenticated : bool ,
@@ -121,7 +120,6 @@ pub struct ApiRequest {
121
120
/// Represents an API response.
122
121
#[ derive( Clone , Debug ) ]
123
122
pub struct ApiResponse {
124
- url : String ,
125
123
status : u32 ,
126
124
headers : Vec < String > ,
127
125
body : Option < Vec < u8 > > ,
@@ -1667,7 +1665,6 @@ impl ApiRequest {
1667
1665
handle. url ( url) ?;
1668
1666
1669
1667
let request = ApiRequest {
1670
- url : url. to_owned ( ) ,
1671
1668
handle,
1672
1669
headers,
1673
1670
is_authenticated : false ,
@@ -1774,12 +1771,10 @@ impl ApiRequest {
1774
1771
let headers = self . get_headers ( ) ;
1775
1772
self . handle . http_headers ( headers) ?;
1776
1773
let body = self . body . as_deref ( ) ;
1777
- let url = self . url . clone ( ) ;
1778
1774
let ( status, headers) =
1779
1775
send_req ( & mut self . handle , out, body, self . progress_bar_mode . clone ( ) ) ?;
1780
1776
debug ! ( "response status: {}" , status) ;
1781
1777
Ok ( ApiResponse {
1782
- url,
1783
1778
status,
1784
1779
headers,
1785
1780
body : None ,
You can’t perform that action at this time.
0 commit comments