Skip to content

api web

aihanrashidov edited this page Aug 1, 2022 · 1 revision

$.web API

Represents the web api namespace which is related to the $.request and $.response APIs.

Reference

  • SAP Help

https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.03/en-US/$.web.html

  • Module

https://github.com/SAP/xsk/blob/main/modules/api/api-xsjs/src/main/resources/META-INF/dirigible/xsk/web

  • Coverage

Body

Methods Description Status
asArrayBuffer() Returns the content of an HTTP request entity body as ArrayBuffer.
asString() Returns the content of an HTTP request entity body as a string.
asWebResponse() Returns the content of an HTTP request entity body as WebRequest.

EntityList

Members Description Status
length The size of the entity list
Methods Description Status
create() Create a new entity.

TupelList

Members Description Status
length The size of the tupelo list
Methods Description Status
get(name) Returns the values for a given name.
remove(name) Removes the value for a given name.
set(name, value) Sets the value for a given name.

WebEntityRequest

Members Description Status
body The body of the entity request.
contentType The content type of the entity request.
cookies The cookies associated with the entity request.
entities The sub-entities of the entity request.
headers The headers of the entity request.
parameters The parameters of the entity request.
Methods Description Status
setBody(body) Sets the body of the entity.

WebEntityResponse

Members Description Status
body The body of the entity response.
contentType The content type of the entity response.
entities The sub-entities of the entity response.
headers The headers of the entity response.
Methods Description Status
setBody(body) Sets the body of the entity.

WebRequest

WebResponse

  • Issues

https://github.com/SAP/xsk/issues/22

Wiki icons legend

✅ - Feature implemented and working as supposed.
⚠️ - Feature partially implemented and needs to be finished.
❌ - Feature not implemented yet.

Clone this wiki locally