UploadEndpointImpl

constructor(referrer: Endpoint, relativeUri: URI, formField: String? = null)

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's.

formField

The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.


constructor(referrer: Endpoint, relativeUri: String, formField: String? = null)

Creates a new upload endpoint.

Parameters

referrer

The endpoint used to navigate to this one.

relativeUri

The URI of this endpoint relative to the referrer's. Add a ./ prefix here to imply a trailing slash on referrer's URI.

formField

The name of the form field to place the uploaded data into; null to use raw bodies instead of multi-part forms.