Module requests.base

Functions

NameDescription
formData(name, f, parameters) Helper to create form elements from File.
formData(name, b, parameters) Helper to create form elements from ubyte[].
formData(name, b, parameters)

Interfaces

NameDescription
Auth Interface to provide user info and http headers requred for server auth.
FiniteReadable This is File-like interface for sending data to multipart forms

Classes

NameDescription
BasicAuthentication Basic authentication. Adds Authorization: Basic header to request
FormDataBytes Class to provide FiniteReadable from user-provided ubyte[]
FormDataFile Class to provide FiniteReadable from File
RequestException General type exception from Request
Response Response

Structs

NameDescription
_UH
MultipartForm This struct used to bulld POST's to forms. Each part have name and data. data is something that can be read-ed and have size. For example this can be string-like object (wrapped for reading) or opened File.
PostFile Struct to send multiple files in POST request.
ReceiveAsRange ReceiveAsRange is InputRange used to supply client with data from response. Each popFront fetch next data portion.

Global variables

NameTypeDescription
defaultBufferSize immutable(uint)