MCPcopy Create free account
hub / github.com/apache/mesos / subresource

Method subresource

src/python/lib/mesos/http.py:136–152  ·  view source on GitHub ↗

Return a new Resource object at a subpath of the current resource's URL. :param subpath: subpath of the resource :type subpath: str :return: Resource at subpath :rtype: Resource

(self, subpath)

Source from the content-addressed store, hash-verified

134 return deepcopy(self._default_headers)
135
136 def subresource(self, subpath):
137 """
138 Return a new Resource object at a subpath of the current resource's URL.
139
140 :param subpath: subpath of the resource
141 :type subpath: str
142 :return: Resource at subpath
143 :rtype: Resource
144 """
145 return self.__class__(
146 url=simple_urljoin(self.url.geturl(), subpath),
147 default_headers=self.default_headers(),
148 default_timeout=self.default_timeout,
149 default_auth=self.default_auth,
150 default_use_gzip_encoding=self.default_use_gzip_encoding,
151 default_max_attempts=self.default_max_attempts,
152 )
153
154 def _request(self,
155 method,

Callers 1

test_resourceFunction · 0.95

Calls 2

default_headersMethod · 0.95
simple_urljoinFunction · 0.85

Tested by 1

test_resourceFunction · 0.76