MCPcopy Index your code
hub / github.com/httpie/cli / HTTPieHTTPAdapter

Class HTTPieHTTPAdapter

httpie/adapters.py:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3
4
5class HTTPieHTTPAdapter(HTTPAdapter):
6
7 def build_response(self, req, resp):
8 """Wrap the original headers with the `HTTPHeadersDict`
9 to preserve multiple headers that have the same name"""
10
11 response = super().build_response(req, resp)
12 response.headers = HTTPHeadersDict(getattr(resp, 'headers', {}))
13 return response

Callers 1

build_requests_sessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected