class documentation
class ResponseTypes: (source)
Undocumented
Method | __init__ |
Undocumented |
Method | from |
Guess the most appropriate Response class based on the given arguments. |
Method | from |
Try to guess the appropriate response based on the body content. This method is a bit magic and could be improved in the future, but it's not meant to be used except for special cases where response types cannot be guess using more straightforward methods. |
Method | from |
Undocumented |
Method | from |
Return the most appropriate Response class from an HTTP Content-Type header |
Method | from |
Return the most appropriate Response class from a file name |
Method | from |
Return the most appropriate Response class by looking at the HTTP headers |
Method | from |
Return the most appropriate Response class for the given mimetype |
Constant | CLASSES |
Undocumented |
Instance Variable | classes |
Undocumented |
Instance Variable | mimetypes |
Undocumented |
Try to guess the appropriate response based on the body content. This method is a bit magic and could be improved in the future, but it's not meant to be used except for special cases where response types cannot be guess using more straightforward methods.
Undocumented
Value |
|