Skip to content

Commit

Permalink
add decode/encode to docs
Browse files Browse the repository at this point in the history
  • Loading branch information
umputun committed Feb 9, 2024
1 parent be89668 commit 8ebf860
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,8 @@ example with chi router:
- `rest.FileServer` - creates a file server for static assets with directory listing disabled
- `realip.Get` - returns client's IP address
- `rest.ParseFromTo` - parses "from" and "to" request's query params with various formats
- `rest.DecodeJSON` - decodes request body to the provided struct
- `rest.EncodeJSON` - encodes response body from the provided struct, sets `Content-Type` to `application/json` and sends the status code

## Profiler

Expand Down

0 comments on commit 8ebf860

Please sign in to comment.