mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove StreamedResponse::new().
This commit is contained in:
parent
4d9f9feb1c
commit
c20d647b61
1 changed files with 1 additions and 5 deletions
|
@ -389,10 +389,6 @@ impl Read for StreamedResponse {
|
|||
}
|
||||
|
||||
impl StreamedResponse {
|
||||
fn new(d: Decoder) -> StreamedResponse {
|
||||
StreamedResponse { decoder: d }
|
||||
}
|
||||
|
||||
pub fn from_http_response(response: WrappedHttpResponse, m: Metadata) -> Result<StreamedResponse, LoadError> {
|
||||
let decoder = match response.content_encoding() {
|
||||
Some(Encoding::Gzip) => {
|
||||
|
@ -415,7 +411,7 @@ impl StreamedResponse {
|
|||
Decoder::Plain(response)
|
||||
}
|
||||
};
|
||||
Ok(StreamedResponse::new(decoder))
|
||||
Ok(StreamedResponse { decoder: decoder })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue