Package cobra :: Module http
[hide private]
[frames] | no frames]

Module http

source code

Implementation of Cobra using HTTP

Classes [hide private]
  CobraHttpException
Base for Cobra exceptions
  CobraHttpRequestHandler
Request handler for HTTP cobra
  CobraHttpDaemon
  CobraHttpProxy
A proxy object for remote objects shared with Cobra
  CobraHttpFactory
Cobra HTTP wrapper for HTTP connection
  CobraHttpClient
Wrapper for HTTP client uses Cobra web services protocol
  CobraHttpMethod
Functions [hide private]
 
chopCobraHttpUri(uri)
Breaks apart a URI provided by as input to a function.
source code
Variables [hide private]
  daemon = None
hash(x)
  verbose = False
  version = "Cobra2"
  COBRA_PORT = 80
  COBRASSL_PORT = 443
  cobra_retrymax = None
hash(x)
Function Details [hide private]

chopCobraHttpUri(uri)

source code 

Breaks apart a URI provided by as input to a function.
Any API call must at least contain an empty args=[] or args=()
calls can ommit kwargs.
URI format is:
/[OBJECT]/[FUNCTION]?args=<JSON ARGS>&kwargs=<JSON KWARGS>

Returns:
    [OBJECT], [FUNCTION], args or (), kwargs or {}