pook.interceptors package¶
Submodules¶
pook.interceptors.aiohttp module¶
pook.interceptors.base module¶
- class pook.interceptors.base.BaseInterceptor(engine)[source]¶
Bases:
object
BaseInterceptor provides a base class for HTTP traffic interceptors implementations.
- abstract activate()[source]¶
Activates the traffic interceptor. This method must be implemented by any interceptor.
- abstract disable()[source]¶
Disables the traffic interceptor. This method must be implemented by any interceptor.
- property name¶
Exposes the interceptor class name.
pook.interceptors.http module¶
- class pook.interceptors.http.HTTPClientInterceptor(engine)[source]¶
Bases:
BaseInterceptor
urllib / http.client HTTP traffic interceptor.
pook.interceptors.urllib3 module¶
- class pook.interceptors.urllib3.FakeHeaders(iterable=(), /)[source]¶
Bases:
list
- getheaders(key, default=None)¶
- class pook.interceptors.urllib3.Urllib3Interceptor(engine)[source]¶
Bases:
BaseInterceptor
Urllib3 HTTP traffic interceptor.
Module contents¶
- class pook.interceptors.BaseInterceptor(engine)[source]¶
Bases:
object
BaseInterceptor provides a base class for HTTP traffic interceptors implementations.
- abstract activate()[source]¶
Activates the traffic interceptor. This method must be implemented by any interceptor.
- abstract disable()[source]¶
Disables the traffic interceptor. This method must be implemented by any interceptor.
- property name¶
Exposes the interceptor class name.
- class pook.interceptors.HTTPClientInterceptor(engine)[source]¶
Bases:
BaseInterceptor
urllib / http.client HTTP traffic interceptor.
- class pook.interceptors.Urllib3Interceptor(engine)[source]¶
Bases:
BaseInterceptor
Urllib3 HTTP traffic interceptor.