| req_method | R Documentation |
Use this function to use a custom HTTP method like HEAD,
DELETE, PATCH, UPDATE, or OPTIONS. The default method is
GET for requests without a body, and POST for requests with a body.
req_method(req, method)
req |
A httr2 request object. |
method |
Custom HTTP method |
A modified HTTP request.
request(example_url()) |> req_method("PATCH")
request(example_url()) |> req_method("PUT")
request(example_url()) |> req_method("HEAD")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.