Model class for requests that don't return JSON. Serializes and de-serializes between JSON and the Python object representation of HTTP request, and returns the raw bytes of the response body.
| 312 | |
| 313 | |
| 314 | class RawModel(JsonModel): |
| 315 | """Model class for requests that don't return JSON. |
| 316 | |
| 317 | Serializes and de-serializes between JSON and the Python |
| 318 | object representation of HTTP request, and returns the raw bytes |
| 319 | of the response body. |
| 320 | """ |
| 321 | |
| 322 | accept = "*/*" |
| 323 | content_type = "application/json" |
| 324 | alt_param = None |
| 325 | |
| 326 | def deserialize(self, content): |
| 327 | return content |
| 328 | |
| 329 | @property |
| 330 | def no_content_response(self): |
| 331 | return "" |
| 332 | |
| 333 | |
| 334 | class MediaModel(JsonModel): |
no outgoing calls
no test coverage detected
searching dependent graphs…