Class: RequestField

RequestField

new RequestField(data, contentType, filename, headers)

Represents a content field to be added to a request.

Parameters:
Name Type Argument Description
data Any

The binary or textual value of the field

contentType String

Content-Type header for the field

filename String <optional>

A filename to attribute to the field when serializing

headers Object <optional>

Extra headers to append to the field when serializing

Source:

Members

contentType

Content-Type header for the field

Source:

data

The binary or textual value of the field

Source:

filename

A filename to attribute to the field when serializing

Source:

headers

Extra headers to append to the field when serializing

Source:
Menu