vibe.d beta banner
get vibe.d
0.8.2

Asynchronous I/O that doesn’t get in your way, written in D

Function RestInterfaceClient.request

Perform a request to the interface using the given parameters.

Json request (
  HTTPMethod verb,
  string name,
  in ref InetHeaderMap hdrs,
  string query,
  string body_
) const;

Parameters

NameDescription
verb Kind of request (See HTTPMethod enum).
name Location to request. For a request on https://github.com/rejectedsoftware/vibe.d/issues?q=author%3ASantaClaus, it will be '/rejectedsoftware/vibe.d/issues'.
hdrs The headers to send. Some field might be overriden (such as Content-Length). However, Content-Type will NOT be overriden.
query The encoded query string. For a request on https://github.com/rejectedsoftware/vibe.d/issues?q=author%3ASantaClaus, it will be 'author%3ASantaClaus'.
body_ The body to send, as a string. If a Content-Type is present in hdrs, it will be used, otherwise it will default to the generic type "application/json".
Authors

Sönke Ludwig, Михаил Страшун

Copyright

© 2012-2013 RejectedSoftware e.K.

License

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