Skip to content

Instantly share code, notes, and snippets.

@cnandreu
Created September 17, 2012 04:03
Show Gist options
  • Save cnandreu/3735475 to your computer and use it in GitHub Desktop.
Save cnandreu/3735475 to your computer and use it in GitHub Desktop.
Adapter parameters
/**
* WL.Server.invokeHttp(parameters) accepts the following json object as an argument:
*
* {
* // Mandatory
* method : 'get' or 'post',
* path: value,
*
* // Optional
* returnedContentType: any known mime-type or one of "json", "css", "csv", "javascript", "plain", "xml", "html"
* returnedContentEncoding : 'encoding',
* parameters: {name1: value1, ... },
* headers: {name1: value1, ... },
* cookies: {name1: value1, ... },
* body: {
* contentType: 'text/xml; charset=utf-8' or similar value,
* content: stringValue
* },
* transformation: {
* type: 'default', or 'xslFile',
* xslFile: fileName
* }
* }
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment