Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
matiasbattocchia authored Aug 8, 2023
1 parent bb4cdc3 commit f59af62
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,25 @@ $ curl localhost:8000 --data '["This is the simplest framework.", "You deserve i
[{"label": "POSITIVE", "score": 0.799}, {"label": "POSITIVE", "score": 0.998}]
```

### Serialization and deserialization

Deserve takes care of converting the request and response payloads based on the **content-type** and **accept** headers of the request.

List of supported **content-types** and the deserialized payload that is passed to the inference handler.

| content-type | Payload |
| ------------ | ------- |
| application/json | `dict`/`list` |
| text/* | raw |
| image/* | binary |
| audio/* | binary |

List of supported **accept** headers and the serialized payload that is returned.

| accept | Payload |
| ------ | ------- |
| application/json | JSON |
| text/* | raw |
| image/* | binary |
| audio/* | binary |

0 comments on commit f59af62

Please sign in to comment.