Class: WebEntityRequest

$.web. WebEntityRequest

$.web.WebEntityRequest represents an HTTP request entity.

new WebEntityRequest()

Provides access to the entity's metadata and to the content (body) of the entity.
See:
  • $.web.WebEntityResponse represents the HTTP request's corresponding response entity.

Members

body :$.web.Body|undefined

The body of the request. The value is undefined when there is no body. Only available on $.request.
Type:

contentType :string

The content type of the entity
Type:
  • string

entities :$.web.EntityList

The sub-entities of the entity
Type:

headers :$.web.TupelList

The headers of the entity
Type:

parameters :$.web.TupelList

The parameters of the entity
Type:

Methods

setBody(body, index)

Sets the body of the entity; the method supports all elemental JavaScript types and ArrayBuffers.
Parameters:
Name Type Argument Description
body any | ArrayBuffer Can be any elemental JavaScript type or an ArrayBuffer
index Number <optional>
If the first argument is ResultSet, the number specifies the index of a Blob column
Throws:
Throws an error if the parameters are invalid