Skip to main content

snake_to_header_case

Function snake_to_header_case 

Source
pub fn snake_to_header_case(name: &str) -> String
Expand description

Convert a snake_case name to Header-Case.

Examples:

  • x_request_id -> X-Request-Id
  • content_type -> Content-Type
  • authorization -> Authorization