From c85d9e316fc8e3cc1505126014690537ca2637ec Mon Sep 17 00:00:00 2001 From: orwithout Date: Fri, 26 Apr 2024 18:00:23 +0800 Subject: Improve documentation for the --header parameter (#1389) * Improve documentation for the --header parameter * Add Support for HSTS to Enhance HTTPS Security --------- Co-authored-by: orwithout --- src/args.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/args.rs b/src/args.rs index 3fb0ede..95c8bff 100644 --- a/src/args.rs +++ b/src/args.rs @@ -235,7 +235,12 @@ pub struct CliArgs { #[arg(short = 't', long = "title", env = "MINISERVE_TITLE")] pub title: Option, - /// Set custom header for responses + /// Inserts custom headers into the responses. Specify each header as a 'Header:Value' pair. + /// This parameter can be used multiple times to add multiple headers. + /// + /// Example: + /// --header "Header1:Value1" --header "Header2:Value2" + /// (If a header is already set or previously inserted, it will not be overwritten.) #[arg( long = "header", value_parser(parse_header), -- cgit v1.2.3