DirectorResponse¶
- class requests_pelican.DirectorResponse(federation, namespace, auth=<factory>, token_generation=<factory>, links=<factory>)[source]¶
Bases:
objectInformation for a Pelican namespace.
As returned by the director endpoint for a path in the namespace.
Methods Summary
from_response(federation, response)Build a new
DirectorResponsefrom arequests.Response.urls(path, *[, random])Return the list of fully-qualified URLs that serve the given path.
Methods Documentation
- classmethod from_response(federation, response)[source]¶
Build a new
DirectorResponsefrom arequests.Response.Parameters¶
- federation
str The URL of the Pelican federation.
- response
requests.Response The HTTP response to parse.
Returns¶
- dirresp
DirectorResponse The formatter response from the Pelican director.
- federation