webpro / dyson

Node server for dynamic, fake JSON.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

is there an option to check request headers (without express)?

shanthakumarf22 opened this issue · comments

Yes, you are able to get the request headers in the template callback function. It's the 5th parameter in the function signature.

function(pathParams, queryParams, postBody, cookies, requestHeaders)

@webpro This can be closed

Indeed. Thanks @m3fawner!

Ok. Thanks.