The OpenD Programming Language

Request

* Structure Request provides configuration, connection pooling, cookie * persistance. You can consider it as 'Session'.

Members

Functions

addHeaders
void addHeaders(string[string] headers)

Add headers to request

addInterceptor
void addInterceptor(Interceptor i)

Add interceptor to request.

clearHeaders
void clearHeaders()

Remove any previously added headers.

exec
Response exec(string url, A args)

Execute GET for http and retrieve file for FTP. You have to provide at least uri. All other arguments should conform to HTTPRequest.get or FTPRequest.get depending on the URI scheme. When arguments do not conform scheme (for example you try to call get("ftp://somehost.net/pub/README", {"a":"b"}) which doesn't make sense) you will receive Exception("Operation not supported for ftp")

Properties

hasMultipartForm
bool hasMultipartForm [@property getter]

helper

path
string path [@property setter]
string path [@property getter]

Set/Get path for next request.

sslSetCaCert
string sslSetCaCert [@property setter]

Set path to certificate authority file.

sslSetCertFile
void sslSetCertFile(string p, SSLOptions.filetype t)

Set path and format for ssl certificate file.

sslSetKeyFile
void sslSetKeyFile(string p, SSLOptions.filetype t)

Set path and format for ssl key file.

sslSetVerifyPeer
bool sslSetVerifyPeer [@property setter]

Enable/disable ssl peer verification..

uri
string uri [@property setter]

Set and Get uri for next request.

Meta