Maya wrote:
I had one more question related to asyncOpen(). Inside the channel
class, how can we find out
whether the asyncOpen() is being requested for read (GET) or write
(POST/PUT) operation ?
(At what point will Firefox set this.requestMethod on the channel ?).

Before calling asyncOpen(). But actually, all it does is call SetUploadStream() at http://bonsai.mozilla.org/cvsblame.cgi?file=mozilla/docshell/base/nsDocShell.cpp&rev=1.814&mark=6948#6944 and then nsHttpChannel::SetUploadStream changes the request type to POST itself...

And will the post data be available via stream listener methods too ?

The post data is just passed to the channel via SetUploadStream, unless I'm misunderstanding the question.

-Boris
_______________________________________________
dev-tech-network mailing list
[email protected]
https://lists.mozilla.org/listinfo/dev-tech-network

Reply via email to