calling setRequestHeader

26 views
Skip to first unread message

souad agoun

unread,
Apr 30, 2012, 10:34:44 AM4/30/12
to v8-users
hi again :)

i am tryting to implement setRequestHeader method and send method in
v8
and calling them from my javascript file

has any one tried this before ?

thank you in advance

Michael Schwartz

unread,
Apr 30, 2012, 11:17:18 AM4/30/12
to v8-u...@googlegroups.com
SilkJS implements both of these. I assume you mean sendfile(2)...

http://github.com/mschwartz/SilkJS
> --
> v8-users mailing list
> v8-u...@googlegroups.com
> http://groups.google.com/group/v8-users

souad agoun

unread,
May 4, 2012, 8:51:28 AM5/4/12
to v8-users
why v8 does not support xmlhttprequest object ?

i tried to run setRequestHeader from my js externel file and i got
undefined function error !

Stephan Beal

unread,
May 4, 2012, 9:16:53 AM5/4/12
to v8-u...@googlegroups.com
On Fri, May 4, 2012 at 2:51 PM, souad agoun <souad...@gmail.com> wrote:
why v8 does not support xmlhttprequest object ?

Because core JS does not define that functionality. That is a w3c standard based upon JS. "The Rhino Book" from O'Reilly is the only JS book i've seen which discusses this distinction in detail and clearly separates the core language APIs and (e.g.) the DOM APIs. JS defines NO I/O functionality (whether network or file or terminal), and ANY I/O performed "by JS" is being performed a non-core-language function.

--
----- stephan beal
http://wanderinghorse.net/home/stephan/
Reply all
Reply to author
Forward
0 new messages