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
Post a Comment