headers::util::entity

Function check_slice_validity

Source
fn check_slice_validity(slice: &[u8]) -> bool
Expand description

check that each char in the slice is either:

  1. %x21, or
  2. in the range %x23 to %x7E, or
  3. above %x80