Request.with_header
with_headerkeyval
Documentation
Sets the header for the request.
Arguments
key
: The name for the header in this request.val
: The value for the header in this request.
Examples
Create a request and add a new header to it.
import Standard.Base.Network.HTTP.Request.Request
example_with_header = Request.delete.with_header "Foo" "bar"