mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-22 15:17:29 +09:00
Issue #1442 - Part 7: Use of ReadableStream in WebIDL files. https://bugzilla.mozilla.org/show_bug.cgi?id=1128959
This commit is contained in:
parent
4c5775b621
commit
dd2c9eb418
5 changed files with 32 additions and 0 deletions
|
|
@ -1000,5 +1000,24 @@ template
|
||||||
void
|
void
|
||||||
FetchBody<Response>::SetMimeType();
|
FetchBody<Response>::SetMimeType();
|
||||||
|
|
||||||
|
template <class Derived>
|
||||||
|
void
|
||||||
|
FetchBody<Derived>::GetBody(JSContext* aCx,
|
||||||
|
JS::MutableHandle<JSObject*> aMessage)
|
||||||
|
{
|
||||||
|
// TODO
|
||||||
|
}
|
||||||
|
|
||||||
|
template
|
||||||
|
void
|
||||||
|
FetchBody<Request>::GetBody(JSContext* aCx,
|
||||||
|
JS::MutableHandle<JSObject*> aMessage);
|
||||||
|
|
||||||
|
template
|
||||||
|
void
|
||||||
|
FetchBody<Response>::GetBody(JSContext* aCx,
|
||||||
|
JS::MutableHandle<JSObject*> aMessage);
|
||||||
|
|
||||||
|
|
||||||
} // namespace dom
|
} // namespace dom
|
||||||
} // namespace mozilla
|
} // namespace mozilla
|
||||||
|
|
|
||||||
|
|
@ -147,6 +147,10 @@ public:
|
||||||
return ConsumeBody(CONSUME_TEXT, aRv);
|
return ConsumeBody(CONSUME_TEXT, aRv);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
GetBody(JSContext* aCx,
|
||||||
|
JS::MutableHandle<JSObject*> aMessage);
|
||||||
|
|
||||||
// Utility public methods accessed by various runnables.
|
// Utility public methods accessed by various runnables.
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -128,6 +128,8 @@ public:
|
||||||
void
|
void
|
||||||
GetBody(nsIInputStream** aStream) { return mRequest->GetBody(aStream); }
|
GetBody(nsIInputStream** aStream) { return mRequest->GetBody(aStream); }
|
||||||
|
|
||||||
|
using FetchBody::GetBody;
|
||||||
|
|
||||||
void
|
void
|
||||||
SetBody(nsIInputStream* aStream) { return mRequest->SetBody(aStream); }
|
SetBody(nsIInputStream* aStream) { return mRequest->SetBody(aStream); }
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -105,6 +105,8 @@ public:
|
||||||
void
|
void
|
||||||
GetBody(nsIInputStream** aStream) { return mInternalResponse->GetBody(aStream); }
|
GetBody(nsIInputStream** aStream) { return mInternalResponse->GetBody(aStream); }
|
||||||
|
|
||||||
|
using FetchBody::GetBody;
|
||||||
|
|
||||||
static already_AddRefed<Response>
|
static already_AddRefed<Response>
|
||||||
Error(const GlobalObject& aGlobal);
|
Error(const GlobalObject& aGlobal);
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,11 @@ interface Response {
|
||||||
};
|
};
|
||||||
Response implements Body;
|
Response implements Body;
|
||||||
|
|
||||||
|
// This should be part of Body but we don't want to expose body to request yet.
|
||||||
|
partial interface Response {
|
||||||
|
readonly attribute ReadableStream? body;
|
||||||
|
};
|
||||||
|
|
||||||
dictionary ResponseInit {
|
dictionary ResponseInit {
|
||||||
unsigned short status = 200;
|
unsigned short status = 200;
|
||||||
ByteString statusText = "OK";
|
ByteString statusText = "OK";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue