obspy.clients.fdsn.client.CustomRedirectHandler

class CustomRedirectHandler[source]

Bases: urllib.request.HTTPRedirectHandler

Custom redirection handler to also do it for POST requests which the standard library does not do by default.

Attributes

handler_order

inf_msg

max_redirections

max_repeats

Public Methods

add_parent

close

http_error_301

http_error_302

http_error_303

http_error_307

redirect_request

Copied and modified from the standard library.

Special Methods

CustomRedirectHandler.__delattr__(name, /)

Implement delattr(self, name).

CustomRedirectHandler.__dir__()

Default dir() implementation.

CustomRedirectHandler.__eq__(value, /)

Return self==value.

CustomRedirectHandler.__format__(format_spec, /)

Default object formatter.

CustomRedirectHandler.__ge__(value, /)

Return self>=value.

CustomRedirectHandler.__getattribute__(name, /)

Return getattr(self, name).

CustomRedirectHandler.__gt__(value, /)

Return self>value.

CustomRedirectHandler.__hash__()

Return hash(self).

CustomRedirectHandler.__init__()
CustomRedirectHandler.__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

CustomRedirectHandler.__le__(value, /)

Return self<=value.

CustomRedirectHandler.__lt__(other)
CustomRedirectHandler.__ne__(value, /)

Return self!=value.

CustomRedirectHandler.__new__(**kwargs)
CustomRedirectHandler.__reduce__()

Helper for pickle.

CustomRedirectHandler.__reduce_ex__(protocol, /)

Helper for pickle.

CustomRedirectHandler.__repr__()

Return repr(self).

CustomRedirectHandler.__setattr__(name, value, /)

Implement setattr(self, name, value).

CustomRedirectHandler.__sizeof__()

Size of object in memory, in bytes.

CustomRedirectHandler.__str__()

Return str(self).

CustomRedirectHandler.__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).