MCPcopy Index your code
hub / github.com/kubernetes-client/python / RESTResponse

Class RESTResponse

kubernetes/aio/client/rest.py:28–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26
27
28class RESTResponse(io.IOBase):
29
30 def __init__(self, resp, data):
31 self.aiohttp_response = resp
32 self.status = resp.status
33 self.reason = resp.reason
34 self.data = data
35
36 def getheaders(self):
37 """Returns a CIMultiDictProxy of the response headers."""
38 return self.aiohttp_response.headers
39
40 def getheader(self, name, default=None):
41 """Returns a given response header."""
42 return self.aiohttp_response.headers.get(name, default)
43
44
45class RESTClientObject(object):

Callers 1

requestMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected