How do I get http request header fields server side in a Meteor.js app? -


how http request header fields server side in meteor.js app?

for example in php 1 use 1 of following determine host or domain request on.

$_server['http_host'] or $_server['server_name'] 

i know on client side can

document.domain 

and pass server.

but there easier way @ least host (something.domain.com) client made request on?

after meteor 0.7 have call on server side

this.connection.httpheaders 

source http://www.meteorpedia.com/read/http_headers


Comments

Popular posts from this blog

Detect support for Shoutcast ICY MP3 without navigator.userAgent in Firefox? -

web - SVG not rendering properly in Firefox -

visual studio - TFS will not accept changes I've made to a Java project -