mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
docstrings
This commit is contained in:
+2
-1
@@ -106,6 +106,7 @@ class Request:
|
||||
|
||||
@property
|
||||
def session(self):
|
||||
"""The session data, in dict form, from the Request."""
|
||||
if "Responder-Session" in self.cookies:
|
||||
data = self.cookies["Responder-Session"]
|
||||
data = self.api._signer.unsign(data)
|
||||
@@ -253,7 +254,7 @@ class Response:
|
||||
) #: A Python dictionary of {Key: value}, representing the headers of the response.
|
||||
self.formats = formats
|
||||
self.cookies = {} #: The cookies set in the Response, as a dictionary
|
||||
self.session = req.session.copy()
|
||||
self.session = req.session.copy() #: """The *cookie-based* session data, in dict form, to add to the Response."""
|
||||
|
||||
@property
|
||||
async def body(self):
|
||||
|
||||
Reference in New Issue
Block a user