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

Method content_type

httpie/models.py:53–58  ·  view source on GitHub ↗

Return the message content type.

(self)

Source from the content-addressed store, hash-verified

51
52 @property
53 def content_type(self) -> str:
54 """Return the message content type."""
55 ct = self._orig.headers.get('Content-Type', '')
56 if not isinstance(ct, str):
57 ct = ct.decode()
58 return ct
59
60
61class HTTPResponse(HTTPMessage):

Callers

nothing calls this directly

Calls 2

getMethod · 0.80
decodeMethod · 0.80

Tested by

no test coverage detected