mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Responding to review comments
This commit is contained in:
parent
aeac382058
commit
49a5e84fb1
4 changed files with 127 additions and 105 deletions
|
@ -237,7 +237,12 @@ impl FetchTaskTarget for IpcSender<FetchResponseMsg> {
|
|||
}
|
||||
}
|
||||
|
||||
impl FetchTaskTarget for () {
|
||||
/// A fetch task that discards all data it's sent,
|
||||
/// useful when speculatively prefetching data that we don't need right
|
||||
/// now, but might need in the future.
|
||||
pub struct DiscardFetch;
|
||||
|
||||
impl FetchTaskTarget for DiscardFetch {
|
||||
fn process_request_body(&mut self, _: &Request) {}
|
||||
|
||||
fn process_request_eof(&mut self, _: &Request) {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue