To get full access to the Kademi Hub existing customers can login here, or new customers can register here.
Provides access to the http request and response objects for when handling http operations
Properties
Name | Returns | Notes | Example |
---|---|---|---|
request | Request |
Get the request object, for example to read cookies:
http.response.getCookie("return-url"); |
|
response | Response |
Get the response object, for example to set cookies
http.response.setCookie("return-url", "/somewhere/i/belong"); |
|
requestBody | String |
Methods
Name | Returns | Notes | Example |
---|---|---|---|
setCookie ( name, value ) | void | Default simple implementation which sets a cookie with the root path and an expiration of 1 week | |
setCookie ( name, value, expirySecs, path ) | void | ||
getCookie ( name ) | String | Return the value associated with the cookie name provided |