diff --git a/httpie/cli/definition.py b/httpie/cli/definition.py index 78c72467..531599b9 100644 --- a/httpie/cli/definition.py +++ b/httpie/cli/definition.py @@ -251,7 +251,7 @@ content_types.add_argument( default=False, short_help="Parse and send an HTTP request from a .http file", help=""" - Parse and send an HTTP request from a file in .http format. + Parse and send an HTTP request from a file in .http format. The file should contain a valid HTTP request with headers and body. If this is specified, URL will be treated as a file path. """, diff --git a/httpie/http_parser.py b/httpie/http_parser.py index 24cc6f7a..27b1e393 100644 --- a/httpie/http_parser.py +++ b/httpie/http_parser.py @@ -2,6 +2,7 @@ from __future__ import annotations from dataclasses import dataclass import re + @dataclass class HttpFileRequest: method: str