How to get all Apigee request headers in JavaScript? -


i have javascript in need work request headers in apigee. online doc ( http://apigee.com/docs/api-services/content/javascript-object-model ) mentions them available via context.proxyrequest.headers name/value pairs. have iterate through them, or available en masse array via context.proxyrequest.headers?

thanks.

you can access request headers through javascript using below

var request_headers = context.getvariable("request.headers.names"); 

the scope of variable within proxy request flow.


Comments

Popular posts from this blog

user interface - How to replace the Python logo in a Tkinter-based Python GUI app? -

objective c - Greedy NSProgressIndicator Allocation -

how to set an OCR language in Google Drive -