[][src]Function mrq::create_request

pub fn create_request<T: Into<URL>>(method: Method, url: T) -> Request

Sends a request to url with method, returns the response or an Error.

In most cases it is recommended to use one of the aliases of this function: get, head, post, put, delete, trace, options, connect, patch. They omit the method parameter, since it is implied in the name, and the body is as optional as it is on Wikipedia.