The OpenD Programming Language

requests.base

Undocumented in source.

Members

Classes

BasicAuthentication
class BasicAuthentication

* 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"); * } * ---

FormDataBytes
class FormDataBytes

Class to provide FiniteReadable from user-provided ubyte[]

FormDataFile
class FormDataFile

Class to provide FiniteReadable from File

RequestException
class RequestException

General type exception from Request

Response
class Response

Response

Functions

formData
auto formData(string name, File f, string[string] parameters)

Helper to create form elements from File.

formData
auto formData(string name, ubyte[] b, string[string] parameters)

Helper to create form elements from ubyte[].

Interfaces

Auth
interface Auth

Interface to provide user info and http headers requred for server auth.

FiniteReadable
interface FiniteReadable

This is File-like interface for sending data to multipart forms

Structs

MultipartForm
struct 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 PostFile

Struct to send multiple files in POST request.

ReceiveAsRange
struct ReceiveAsRange

ReceiveAsRange is InputRange used to supply client with data from response. Each popFront fetch next data portion.

Meta