header

Attribute Macro header 

Source
#[header]
Expand description

A procedural macro for adding HTTP headers to a request. It includes the following attributes:

  • name - HTTP header name (String)
  • value - HTTP header value (String)
  • sensitive - sensitive HTTP header value (true/false)

It also supports filling #[segment] into header values.