0

restContext.getRequestHeaders(); I am passing HashMap of type HashMap(String,String) to request Header as shown in the abstract code.

var headers=restContext.getRequestHeaders();
for( key in headers){
  query.replace(''#id#'',headers[key]);
  query= query.concat(headers[key]);
}
3
  • 1
    As a developer tip, always keep your indentation clean. This is a mess. Commented Jul 28, 2017 at 5:59
  • check this Commented Jul 28, 2017 at 6:04
  • Possible duplicate of HashMap objects in javascript Commented Jul 28, 2017 at 6:57

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.