pub trait RespConfig {
    // Provided method
    fn head_extra_code(&self) -> Option<Cow<'static, str>> { ... }
}
Expand description

the config of response

Provided Methods§

source

fn head_extra_code(&self) -> Option<Cow<'static, str>>

wether write the extra error message into header with the provided name

  • Some(_) enable
  • None disable
§Default

default is enable with name extra-error

Implementors§