* Basic authentication. * Adds Authorization: Basic header to request * Example: * --- * import requests; * void main() { * rq = Request(); * rq.authenticator = new BasicAuthentication("user", "passwd"); * rs = rq.get("http://httpbin.org/basic-auth/user/passwd"); * } * ---
Class to provide FiniteReadable from user-provided ubyte[]
Class to provide FiniteReadable from File
General type exception from Request
Response
Helper to create form elements from File.
Helper to create form elements from ubyte[].
Interface to provide user info and http headers requred for server auth.
This is File-like interface for sending data to multipart forms
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.
Struct to send multiple files in POST request.
ReceiveAsRange is InputRange used to supply client with data from response. Each popFront fetch next data portion.