mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
implemented feture and tests (#35309)
Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
This commit is contained in:
parent
5e0af44edb
commit
bea7a969f4
7 changed files with 112 additions and 3 deletions
|
@ -434,6 +434,19 @@ impl RequestBuilder {
|
|||
self
|
||||
}
|
||||
|
||||
pub fn service_workers_mode(
|
||||
mut self,
|
||||
service_workers_mode: ServiceWorkersMode,
|
||||
) -> RequestBuilder {
|
||||
self.service_workers_mode = service_workers_mode;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn cache_mode(mut self, cache_mode: CacheMode) -> RequestBuilder {
|
||||
self.cache_mode = cache_mode;
|
||||
self
|
||||
}
|
||||
|
||||
pub fn build(self) -> Request {
|
||||
let mut request = Request::new(
|
||||
self.id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue