Ok, last question of the night.
Can I force a response object to be cleaned up and then converted to an E4X object if it returns text/html as the mimetype? Basically I want
CODE
y.rest(url).header('Cookie', "stuff").get().response
to be the same as
CODE
y.query("SELECT * FROM html WHERE url=@url", {url : url})
except that it has the special cookie headers I want.
Implementation ideas :
CODE
y.rest(url).header('Cookie', "stuff").get().e4xresponse
CODE
y.rest(url).header('Cookie', "stuff").get().e4xresponse()
CODE
y.htmlToXml(y.rest(url).header('Cookie', "stuff").get().response)