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

Method from_message

httpie/models.py:216–233  ·  view source on GitHub ↗
(
        cls,
        message: RequestsMessage,
        raw_args: str = '',
        **kwargs
    )

Source from the content-addressed store, hash-verified

214
215 @classmethod
216 def from_message(
217 cls,
218 message: RequestsMessage,
219 raw_args: str = '',
220 **kwargs
221 ):
222 kind = infer_requests_message_kind(message)
223
224 options = {
225 option: param in raw_args
226 for option, param in OPTION_TO_PARAM[kind].items()
227 }
228 options.update(kwargs)
229
230 return cls(
231 kind=kind,
232 **options
233 )

Callers 3

programFunction · 0.80
startMethod · 0.80
write_raw_dataFunction · 0.80

Calls 3

itemsMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected