HTTP connection

Class Methods

The following methods can be invoked on instances of this class.

__construct(string target)

Constructs connection

setHeader(mixed label, string value)

Sets the HTTP headers to use for upcoming send requests

send(Request request)

Sends a JSON-RPC request

useSpec(string spec)

Sets the spec version to use for this connection

setTimeout(int timeout)

Changes timeout.

sendRequest(mixed method, array params)

Send a request directly

sendNotification(mixed method, array params)

Send a notification directly

getNativeInterface()

Creates a native remote interface for the target server

factory(mixed target)

Constructs connection handler.