Http
The spyne.protocol.http module contains the HttpRpc protocol
implementation.
-
class spyne.protocol.http.HttpPattern(address, verb=None, host=None, endpoint=None)[source]
Bases: object
Experimental. Stay away.
Parameters: |
- address – Address pattern
- verb – HTTP Verb pattern
- host – HTTP “Host:” header pattern
|
-
as_werkzeug_rule()[source]
-
class spyne.protocol.http.HttpRpc(app=None, validator=None, mime_type=None, tmp_dir=None, tmp_delete_on_close=True)[source]
Bases: spyne.protocol.dictobj.DictDocument
The so-called ReST-ish HttpRpc protocol implementation. It only works
with Http (wsgi and twisted) transports.
-
allowed_http_verbs = None
-
create_in_document(ctx, in_string_encoding=None)[source]
-
create_out_string(ctx, out_string_encoding='utf8')[source]
-
decompose_incoming_envelope(ctx, message)[source]
-
deserialize(ctx, message)[source]
-
get_tmp_delete_on_close()[source]
-
mime_type = 'text/plain'
-
serialize(ctx, message)[source]
-
set_tmp_delete_on_close(val)[source]
-
set_validator(validator)[source]
-
tmp_delete_on_close
-
spyne.protocol.http.get_stream_factory(dir=None, delete=True)[source]