-
-
Notifications
You must be signed in to change notification settings - Fork 980
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update README, CHANGELOG, other comments
- Loading branch information
Peter Kieltyka
authored and
Peter Kieltyka
committed
Mar 30, 2017
1 parent
7f80c65
commit e6033ea
Showing
6 changed files
with
40 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
## chi/render is experimental package | ||
# chi/render | ||
|
||
Please, note that the render pkg API might change. | ||
The `render` sub-package helps manage HTTP request / response payloads. | ||
|
||
Every a well-designed, robust and maintainable Web Service / REST API also needs | ||
well-*defined* request and response payloads. | ||
|
||
Typically in a REST API application, you will have your data models (objects/structs) | ||
that hold lower-level runtime application state, and at times you need to assemble, | ||
decorate, hide or transform the representation before responding to a client, and | ||
also the client will likely provide the same structure as input from its requests. | ||
|
||
This is where `render` comes in - offering a few simple helpers and interfaces to | ||
provide a simple pattern for managing payload encoding and decoding. | ||
|
||
We've also combined it with some helpers for responding to content types and parsing | ||
request bodies. Please have a look at the [rest](https://github.com/pressly/chi/blob/master/_examples/rest/main.go) | ||
example which uses the latest chi/render sub-pkg. | ||
|
||
All feedback is welcome, thank you! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters