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

Class RESTResponse

kubernetes/client/rest.py:33–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31
32
33class RESTResponse(io.IOBase):
34
35 def __init__(self, resp):
36 self.urllib3_response = resp
37 self.status = resp.status
38 self.reason = resp.reason
39 self.data = resp.data
40
41 def getheaders(self):
42 """Returns a dictionary of the response headers."""
43 return self.urllib3_response.getheaders()
44
45 def getheader(self, name, default=None):
46 """Returns a given response header."""
47 return self.urllib3_response.getheader(name, default)
48
49
50class RESTClientObject(object):

Callers 1

requestMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected