Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ODataRequestConfig
    • ODataBatchConfig

Index

Constructors

constructor

  • new ODataBatchConfig(defaultServicePath: string, batchId: string): ODataBatchConfig
  • Creates an instance of ODataBatchConfig.

    Parameters

    • defaultServicePath: string

      The default OData service path

    • batchId: string

      The batch id for building the header and the payload.

    Returns ODataBatchConfig

Properties

batchId

batchId: string

The batch id for building the header and the payload.

contentType

contentType: string

The content type of the request

customServicePath

customServicePath: string

defaultServicePath

defaultServicePath: string

The default OData service path

method

HTTP method of the request

payload

payload: MapType<any> | string

Static content_type_prefix

content_type_prefix: "multipart/mixed; boundary=batch_" = "multipart/mixed; boundary=batch_"

Accessors

customHeaders

  • get customHeaders(): MapType<string>
  • set customHeaders(headers: MapType<string>): void
  • Returns MapType<string>

  • Parameters

    • headers: MapType<string>

    Returns void

Methods

addCustomHeaders

  • addCustomHeaders(headers: MapType<string>): void
  • Add custom headers to the request. This is useful in case you want to provide your own authorization headers for example.

    Parameters

    • headers: MapType<string>

      Key-value pairs where the key is the name of a header property and the value is the respective value

    Returns void

Protected prependDollarToQueryParameters

  • prependDollarToQueryParameters(params: MapType<any>): MapType<any>
  • Parameters

    • params: MapType<any>

    Returns MapType<any>

queryParameters

  • queryParameters(): MapType<any>
  • Returns MapType<any>

resourcePath

  • resourcePath(): string
  • Returns string