HTTP - Request
Steps
- Create a project
http-service
. - Then create a JavaScript service named
http-service.js
. - Within the service code, enter the following content:
Simple HTTP Service
var request = require("http/v4/request");
var response = require("http/v4/response");
var method = request.getMethod();
response.println("[Method]: " + method);
response.flush();
response.close();
For more information, see the API documentation.