pyre.http.documents¶
Module Contents¶
-
exception
pyre.http.documents.OK¶ Bases:
pyre.http.Response.ResponseOK
-
code= 200¶
-
status¶
-
description= Request fulfilled, document follows¶
-
render(self, **kwds)¶ Generate the payload
-
-
exception
pyre.http.documents.Literal(value, **kwds)¶ Bases:
pyre.http.documents.OKA response built out of a literal string
-
encoding= utf-8¶
-
render(self, server, **kwds)¶ Pack the contents of the file into a binary buffer
-
-
exception
pyre.http.documents.JSON(value, **kwds)¶ Bases:
pyre.http.documents.OKA response built out of the JSON encoding of a python object
-
encoding= utf-8¶
-
render(self, **kwds)¶ Encode the object in JSON format
-
-
exception
pyre.http.documents.Document(application, **kwds)¶ Bases:
pyre.http.documents.OKA response built out of an application generated document
-
exception
pyre.http.documents.File(uri, **kwds)¶ Bases:
pyre.http.documents.DocumentA document response built out of a file in the application private document root
-
uri¶
-
render(self, server, **kwds)¶ Pack the contents of the file into a binary buffer
-