MCPcopy
hub / github.com/httpie/cli / process_empty_header_arg

Function process_empty_header_arg

httpie/cli/requestitems.py:134–139  ·  view source on GitHub ↗
(arg: KeyValueArg)

Source from the content-addressed store, hash-verified

132
133
134def process_empty_header_arg(arg: KeyValueArg) -> str:
135 if not arg.value:
136 return arg.value
137 raise ParseError(
138 f'Invalid item {arg.orig!r} (to specify an empty header use `Header;`)'
139 )
140
141
142def process_query_param_arg(arg: KeyValueArg) -> str:

Callers

nothing calls this directly

Calls 1

ParseErrorClass · 0.85

Tested by

no test coverage detected