pub trait FetchTaskTarget {
    // Required methods
    fn process_request_body(&mut self, request: &Request);
    fn process_request_eof(&mut self, request: &Request);
    fn process_response(&mut self, response: &Response);
    fn process_response_chunk(&mut self, chunk: Vec<u8>);
    fn process_response_eof(&mut self, response: &Response);
}

Required Methods§

source

fn process_request_body(&mut self, request: &Request)

https://fetch.spec.whatwg.org/#process-request-body

Fired when a chunk of the request body is transmitted

source

fn process_request_eof(&mut self, request: &Request)

https://fetch.spec.whatwg.org/#process-request-end-of-file

Fired when the entire request finishes being transmitted

source

fn process_response(&mut self, response: &Response)

https://fetch.spec.whatwg.org/#process-response

Fired when headers are received

source

fn process_response_chunk(&mut self, chunk: Vec<u8>)

Fired when a chunk of response content is received

source

fn process_response_eof(&mut self, response: &Response)

https://fetch.spec.whatwg.org/#process-response-end-of-file

Fired when the response is fully fetched

Implementations on Foreign Types§

source§

impl FetchTaskTarget for IpcSender<FetchResponseMsg>

source§

fn process_request_body(&mut self, _: &Request)

source§

fn process_request_eof(&mut self, _: &Request)

source§

fn process_response(&mut self, response: &Response)

source§

fn process_response_chunk(&mut self, chunk: Vec<u8>)

source§

fn process_response_eof(&mut self, response: &Response)

Implementors§