update docs, bump version

This commit is contained in:
Tobias Oberstein
2012-07-23 13:47:02 +02:00
parent 0736101386
commit 1fdb4446ec
8 changed files with 24 additions and 7 deletions

View File

@@ -35,6 +35,8 @@ class HTTPChannelHixie76Aware(HTTPChannel):
set content-length header. This hacked HTTPChannel injects the missing
HTTP header upon detecting Hixie-76. We need this since otherwise
Twisted Web will silently ignore the body.
To use this, set twisted.web.server.Site.protocol = HTTPChannelHixie76Aware
"""
def headerReceived(self, line):

View File

@@ -1478,6 +1478,7 @@ class WampCraClientProtocol(WampClientProtocol, WampCraProtocol):
:type authExtra: dict
:param authSecret: The secret of the authentication credentials, something like the user password or application secret key.
:type authsecret: str
:returns Deferred -- Deferred that fires upon authentication success (with permissions) or failure.
"""
def _onAuthChallenge(challenge):
@@ -1617,7 +1618,7 @@ class WampCraServerProtocol(WampServerProtocol, WampCraProtocol):
@exportRpc("authreq")
def authRequest(self, appkey = None, extra = None):
"""
RPC for clients to initiate the authentication handshake.
RPC endpoint for clients to initiate the authentication handshake.
:param appkey: Authentication key, such as user name or application name.
:type appkey: str
@@ -1700,7 +1701,7 @@ class WampCraServerProtocol(WampServerProtocol, WampCraProtocol):
@exportRpc("auth")
def auth(self, signature = None):
"""
RPC for clients to actually authenticate after requesting authentication and computing
RPC endpoint for clients to actually authenticate after requesting authentication and computing
a signature from the authentication challenge.
:param signature: Authenticatin signature computed by the client.

View File

@@ -40,7 +40,7 @@ Source Code:
setup (
name = 'autobahn',
version = '0.5.4',
version = '0.5.5',
description = 'AutobahnPython - WebSocket/WAMP implementation for Python/Twisted.',
long_description = LONGSDESC,
license = 'Apache License 2.0',

View File

@@ -50,7 +50,7 @@ copyright = u'2011,2012 Tavendo GmbH'
# The short X.Y version.
version = '0.5'
# The full version, including alpha/beta/rc tags.
release = '0.5.2'
release = '0.5.5'
# The language for content autogenerated by Sphinx. Refer to documentation
# for a list of supported languages.

View File

@@ -25,4 +25,5 @@ Protocol
:members: URI_WAMP_BASE,
URI_WAMP_ERROR,
URI_WAMP_RPC,
URI_WAMP_EVENT
URI_WAMP_EVENT,
authSignature

View File

@@ -29,5 +29,4 @@ Protocol
.. autoclass:: autobahn.wamp.WampCraClientProtocol
:members: authenticate,
authSignature
:members: authenticate

View File

@@ -27,6 +27,8 @@ Protocol
registerForRpc,
registerMethodForRpc,
registerProcedureForRpc,
registerHandlerMethodForRpc,
registerHandlerProcedureForRpc,
registerForPubSub,
registerHandlerForPubSub,
registerHandlerForSub,

View File

@@ -32,3 +32,15 @@ Opening Handshake
.. autoclass:: autobahn.websocket.HttpException
:members: __init__
Web Resource
------------
.. autoclass:: autobahn.resource.WebSocketResource
:members: __init__,
getChildWithDefault,
putChild,
render
.. autoclass:: autobahn.resource.HTTPChannelHixie76Aware