Returns the set input_format handler for the given content_type
(self, content_type)
| 133 | yield handler |
| 134 | |
| 135 | def input_format(self, content_type): |
| 136 | """Returns the set input_format handler for the given content_type""" |
| 137 | return getattr(self, "_input_format", {}).get( |
| 138 | content_type, hug.defaults.input_format.get(content_type, None) |
| 139 | ) |
| 140 | |
| 141 | def set_input_format(self, content_type, handler): |
| 142 | """Sets an input format handler for this Hug API, given the specified content_type""" |