powered by
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.
HEAD
DELETE
PATCH
UPDATE
OPTIONS
GET
POST
req_method(req, method)
A modified HTTP request.
A httr2 request object.
Custom HTTP method
request(example_url()) |> req_method("PATCH") request(example_url()) |> req_method("PUT") request(example_url()) |> req_method("HEAD")
Run the code above in your browser using DataLab