-
Notifications
You must be signed in to change notification settings - Fork 3
api web
aihanrashidov edited this page Aug 1, 2022
·
1 revision
Represents the web api namespace which is related to the $.request and $.response APIs.
- SAP Help
https://help.sap.com/doc/3de842783af24336b6305a3c0223a369/2.0.03/en-US/$.web.html
- Module
- 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. | ✅ |
- Issues
✅ - Feature implemented and working as supposed.
❌ - Feature not implemented yet.