set-header ( request/response value key -- request/response )
HTTP protocol objects ยป HTTP headers

Prev:header ( request/response key -- value )


Vocabulary
http

Inputs
request/responsea request or a response
valuean object
keya string


Outputs
request/responsea request or a response


Word description
Stores a value into the HTTP header of a request or response. The value can be any object supported by present.

Notes
This word always returns the same object that was input. This allows for a "pipeline" coding style, where several header parameters are set in a row.

Side effects
Modifies request/response

Definition


: set-header
( request/response value key -- request/response )
pick header>> set-at ;