This page contains information related to an old version of the a!httpResponse() Function.
Old versions do not appear in category lists; only the newest versions are listed.
To take advantage of the latest features and improvements, we always recommend you use the latest versions of functions whenever possible. See the latest version's page for information about what's been changed.
a!httpResponse_17r4( statusCode, headers, body )
Returns an HTTP Response object for use in a Web API.
Keyword | Type | Description |
---|---|---|
|
Number(Integer) |
The status code of the response. Default is "200" meaning successful completion of the request. |
|
List of HttpHeader |
A list of headers for the response. Built with a!httpHeader(). |
|
Text |
The body of the response. |
HTTP Response
1
2
3
4
5
6
7
8
a!httpResponse_17r4(
statusCode: 200,
headers: {
a!httpHeader(name: "content-type", value: "application/json")
},
body: a!toJson(value: local!user)
)
See also: Web APIs, a!httpheader()