src.core.http.proxy
index
/home/stanislav/PycharmProjects/opendoor/src/core/http/proxy.py

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License.
 
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.
 
You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
Development Team: Stanislav WEB

 
Modules
       
importlib
random

 
Classes
       
src.core.http.providers.debug.DebugProvider(__builtin__.object)
Proxy(src.core.http.providers.request.RequestProvider, src.core.http.providers.debug.DebugProvider)
src.core.http.providers.request.RequestProvider(src.core.http.providers.cookies.CookiesProvider, src.core.http.providers.header.HeaderProvider)
Proxy(src.core.http.providers.request.RequestProvider, src.core.http.providers.debug.DebugProvider)

 
class Proxy(src.core.http.providers.request.RequestProvider, src.core.http.providers.debug.DebugProvider)
    Proxy class
 
 
Method resolution order:
Proxy
src.core.http.providers.request.RequestProvider
src.core.http.providers.cookies.CookiesProvider
src.core.http.providers.header.HeaderProvider
src.core.http.providers.accept.AcceptHeaderProvider
src.core.http.providers.debug.DebugProvider
__builtin__.object

Methods defined here:
__init__(self, config, debug, **kwargs)
Proxy instance
:param src.lib.browser.config.Config config: global configurations
:param DebugProvider debug: debugger
request(self, url)
Client request using Proxy
:param str url: request uri
:return: urllib3.HTTPResponse

Methods inherited from src.core.http.providers.request.RequestProvider:
cookies_middleware(self, is_accept, response)
Route fetched cookies from first response to the next requests
:param urllib3.response.HTTPResponse response: Http response
:return: None

Data descriptors inherited from src.core.http.providers.cookies.CookiesProvider:
__dict__
dictionary for instance variables (if defined)
__weakref__
list of weak references to the object (if defined)

Methods inherited from src.core.http.providers.header.HeaderProvider:
add_header(self, key, value)
Add custom header
 
:param str key: header name
:param str value: header value
:return: HeaderProvider

Methods inherited from src.core.http.providers.debug.DebugProvider:
debug_connection_pool(self, keymsg, pool)
Debug connection pool message
:param str keymsg: tpl key
:param object pool: pool object
:return: None
debug_list(self, total_lines)
Debug scan list
:param int total_lines: total list lines
:return: None
debug_proxy_pool(self)
Debug proxy pool message
:return: None
debug_request(self, request_header, url, method)
Debug request
:param dict request_header: request header
:param str url: request url
:param str method: request method
:return: None
debug_request_uri(self, status, request_uri, **kwargs)
Debug request_uri
:param int status: response status
:param str request_uri: request urli
:param **kwargs: key arguments
:return: None
debug_response(self, response_header)
Debug response
:param dict response_header: response header
:return: None
debug_user_agents(self)
Debug info for user agent
:return: None

Data descriptors inherited from src.core.http.providers.debug.DebugProvider:
level
Get debug level
:return: int