Request.with_headers
with_headersnew_headers
Documentation
Sets the headers in the request.
Arguments
new_headers: A vector of headers to put in the request. Ifselfhas any headers they will be replaced with new_headers.
Examples
Create a request and unset all the headers.
import Standard.Base.Network.HTTP.Request.Request
example_with_headers = Request.delete.with_headers []