Skip to main content

encode_file_meta_header

Function encode_file_meta_header 

Source
pub fn encode_file_meta_header(meta: &FileMeta) -> String
Expand description

Encode FileMeta for the [HEADER_FILE_META] header.

The raw JSON is base64-encoded so that non-Latin-1 virtual paths (e.g. CJK filenames) survive HTTP header transport — browsers reject header values containing characters outside ISO-8859-1.