mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-05 23:38:38 +09:00
Issue #1442 - Part 10b - Use nsIXHRSendable instead Blob/FormData/URLSearchParams. https://bugzilla.mozilla.org/show_bug.cgi?id=1329298 Pre-requisite for Part 11.
This commit is contained in:
parent
a4146b60a4
commit
a9520b2a7a
5 changed files with 18 additions and 50 deletions
|
|
@ -192,36 +192,6 @@ BodyExtractor<nsIInputStream>::GetAsStream(nsIInputStream** aResult,
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
template<> nsresult
|
||||
BodyExtractor<Blob>::GetAsStream(nsIInputStream** aResult,
|
||||
uint64_t* aContentLength,
|
||||
nsACString& aContentTypeWithCharset,
|
||||
nsACString& aCharset) const
|
||||
{
|
||||
return mBody->GetSendInfo(aResult, aContentLength, aContentTypeWithCharset,
|
||||
aCharset);
|
||||
}
|
||||
|
||||
template<> nsresult
|
||||
BodyExtractor<FormData>::GetAsStream(nsIInputStream** aResult,
|
||||
uint64_t* aContentLength,
|
||||
nsACString& aContentTypeWithCharset,
|
||||
nsACString& aCharset) const
|
||||
{
|
||||
return mBody->GetSendInfo(aResult, aContentLength, aContentTypeWithCharset,
|
||||
aCharset);
|
||||
}
|
||||
|
||||
template<> nsresult
|
||||
BodyExtractor<URLSearchParams>::GetAsStream(nsIInputStream** aResult,
|
||||
uint64_t* aContentLength,
|
||||
nsACString& aContentTypeWithCharset,
|
||||
nsACString& aCharset) const
|
||||
{
|
||||
return mBody->GetSendInfo(aResult, aContentLength, aContentTypeWithCharset,
|
||||
aCharset);
|
||||
}
|
||||
|
||||
template<> nsresult
|
||||
BodyExtractor<nsIXHRSendable>::GetAsStream(nsIInputStream** aResult,
|
||||
uint64_t* aContentLength,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue