Sets an input format handler for this Hug API, given the specified content_type
(self, content_type, handler)
| 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""" |
| 143 | if getattr(self, "_input_format", None) is None: |
| 144 | self._input_format = {} |
| 145 | self._input_format[content_type] = handler |
| 146 | |
| 147 | @property |
| 148 | def middleware(self): |
no outgoing calls