RequestRouter

Constructors

this
this(URLRouter router)

Members

Functions

customMethod
RequestRouter customMethod(string path)
RequestRouter customMethod(URL url)

Send a custom method request

delete_
RequestRouter delete_(string path)

Send a DELETE request

end
void end(T callback)
Undocumented in source. Be warned that the author may not have intended to support it.
end
void end()
Undocumented in source. Be warned that the author may not have intended to support it.
expectHeader
RequestRouter expectHeader(string name, string value, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
expectHeaderContains
RequestRouter expectHeaderContains(string name, string value, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
expectHeaderExist
RequestRouter expectHeaderExist(string name, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
expectStatusCode
RequestRouter expectStatusCode(int code, string file, size_t line)
Undocumented in source. Be warned that the author may not have intended to support it.
get
RequestRouter get(string path)

Send a GET request

header
RequestRouter header(string name, string value)

Add a header to the server request

patch
RequestRouter patch(string path)

Send a PATCH request

post
RequestRouter post(string path)

Send a POST request

put
RequestRouter put(string path)

Send a PUT request

send
RequestRouter send(string[string] data)

Send a stringstring to the server as x-www-form-urlencoded data

send
RequestRouter send(T data)

Send data to the server. You can send strings, Json or any other object which will be serialized to Json

Meta