Function requestHTTP

Performs a HTTP request on the specified URL.

The 'requester' parameter allows to customize the request and to specify the request body for non-GET requests.

Prototypes

HTTPClientResponse requestHTTP(
  string url,
  scope void delegate(scope HTTPClientRequest) requester
);

HTTPClientResponse requestHTTP(
  URL url,
  scope void delegate(scope HTTPClientRequest) requester
);

void requestHTTP(
  string url,
  scope void delegate(scope HTTPClientRequest) requester,
  scope void delegate(scope HTTPClientResponse) responder
);

void requestHTTP(
  URL url,
  scope void delegate(scope HTTPClientRequest) requester,
  scope void delegate(scope HTTPClientResponse) responder
);

Authors

Sönke Ludwig, Jan Krüger

Copyright

© 2012 RejectedSoftware e.K.

License

Subject to the terms of the MIT license, as written in the included LICENSE.txt file.