Hi Kevin,
If I remember correctly then you can just search for \n\n I.e. two end of line characters to indicate headers are over.
I think as well headers are sent on one like so you could parse them by splitting on end of line (character 10). Then when you get a line that is blank the headers are over (same as searching for two end of line above).
Simon
--
You received this message because you are subscribed to the Google Groups "appjs-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to appjs-dev+...@googlegroups.com.
To post to this group, send email to appj...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Hi Kevin,
If you mean in nodejs then the handler function gets two objects - request and response. So look at response object and you can then set the headers, I cannot remember if it was a setHeader function or if there was just a headers array but it should be quite straight forward.
Simon
Look for a response object appjs still needs to send headers to browser so it should be there. You can do console.log(response) if you want to view the object.
Simon