Package restkit :: Module sock
[hide private]
[frames] | no frames]

Module sock

source code

Classes [hide private]
  TrustAllX509TrustManager
Define a custom TrustManager which will blindly accept all certificates
Functions [hide private]
 
validate_ssl_args(ssl_args) source code
 
close(skt) source code
 
send_chunk(sock, data) source code
 
send(sock, data, chunked=False) source code
 
send_nonblock(sock, data, chunked=False) source code
 
sendlines(sock, lines, chunked=False) source code
 
sendfile(sock, data, chunked=False) source code
 
trust_all_certificates(f)
Decorator function that will make it so the context of the decorated method will run with our TrustManager that accepts all certificates
source code
Variables [hide private]
  CHUNK_SIZE = 16384
  MAX_BODY = 114688
  DNS_TIMEOUT = 60
  _allowed_ssl_args = ('keyfile', 'certfile', 'server_side', 'ce...
  trust_managers = array([TrustAllX509TrustManager()], TrustMana...
  TRUST_ALL_CONTEXT = SSLContext.getInstance("SSL")
  DEFAULT_CONTEXT = SSLContext.getDefault()
  __package__ = 'restkit'
Variables Details [hide private]

_allowed_ssl_args

Value:
('keyfile',
 'certfile',
 'server_side',
 'cert_reqs',
 'ssl_version',
 'ca_certs',
 'do_handshake_on_connect',
 'suppress_ragged_eofs')

trust_managers

Value:
array([TrustAllX509TrustManager()], TrustManager)