Module requests.base
Functions
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
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
Name | Description |
---|---|
_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
Name | Type | Description |
---|---|---|
defaultBufferSize
|
immutable(uint)
|