Header menu logo fable-electron-docs-api

PostBody Type

Constructors

Constructor Description

PostBody(data, contentType, ?boundary)

Full Usage: PostBody(data, contentType, ?boundary)

Parameters:
    data : U2<UploadRawData, UploadFile>[] - The post data to be sent to the new window.
    contentType : string - The content-type header used for the data. One of application/x-www-form-urlencoded or multipart/form-data. Corresponds to the enctype attribute of the submitted HTML form.
    ?boundary : string - The boundary used to separate multiple parts of the message. Only valid when contentType is multipart/form-data.

Returns: PostBody
data : U2<UploadRawData, UploadFile>[]

The post data to be sent to the new window.

contentType : string

The content-type header used for the data. One of application/x-www-form-urlencoded or multipart/form-data. Corresponds to the enctype attribute of the submitted HTML form.

?boundary : string

The boundary used to separate multiple parts of the message. Only valid when contentType is multipart/form-data.

Returns: PostBody

Instance members

Instance member Description

this.boundary

Full Usage: this.boundary

The boundary used to separate multiple parts of the message. Only valid when contentType is multipart/form-data.

this.contentType

Full Usage: this.contentType

The content-type header used for the data. One of application/x-www-form-urlencoded or multipart/form-data. Corresponds to the enctype attribute of the submitted HTML form.

this.data

Full Usage: this.data

The post data to be sent to the new window.

Type something to start searching.