mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Merge request type and destination
This commit is contained in:
parent
48c715c1c8
commit
c6bb1cb9d5
20 changed files with 88 additions and 152 deletions
|
@ -13,7 +13,7 @@ interface Request {
|
|||
readonly attribute ByteString method;
|
||||
readonly attribute USVString url;
|
||||
[SameObject] readonly attribute Headers headers;
|
||||
readonly attribute RequestType type;
|
||||
|
||||
readonly attribute RequestDestination destination;
|
||||
readonly attribute USVString referrer;
|
||||
readonly attribute ReferrerPolicy referrerPolicy;
|
||||
|
@ -22,6 +22,7 @@ interface Request {
|
|||
readonly attribute RequestCache cache;
|
||||
readonly attribute RequestRedirect redirect;
|
||||
readonly attribute DOMString integrity;
|
||||
|
||||
[NewObject, Throws] Request clone();
|
||||
};
|
||||
|
||||
|
@ -41,31 +42,21 @@ dictionary RequestInit {
|
|||
any window; // can only be set to null
|
||||
};
|
||||
|
||||
enum RequestType {
|
||||
"",
|
||||
"audio",
|
||||
"font",
|
||||
"image",
|
||||
"script",
|
||||
"style",
|
||||
"track",
|
||||
"video"
|
||||
};
|
||||
|
||||
enum RequestDestination {
|
||||
"",
|
||||
"audio",
|
||||
"document",
|
||||
"embed",
|
||||
"font",
|
||||
"image",
|
||||
"manifest",
|
||||
"media",
|
||||
"object",
|
||||
"report",
|
||||
"script",
|
||||
"serviceworker",
|
||||
"sharedworker",
|
||||
"style",
|
||||
"track",
|
||||
"video",
|
||||
"worker",
|
||||
"xslt"
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue