Peter Kieltyka
|
e6033ea754
|
Update README, CHANGELOG, other comments
|
2017-03-30 14:41:17 -04:00 |
|
Peter Kieltyka
|
7f80c6515c
|
Update versions example to use latest render subpkg
|
2017-03-30 14:41:17 -04:00 |
|
Peter Kieltyka
|
af97407682
|
Rewrite of chi/render pkg, introducing Binder and Renderer interfaces for handling well-defined request/response payloads
|
2017-03-30 14:41:17 -04:00 |
|
Rene Zbinden
|
5d4fc6c525
|
fix typo in godoc for xml marshaler
|
2017-01-05 09:11:34 +01:00 |
|
Daniel Martí
|
15c2d6e590
|
all: make gosimple happy
|
2016-10-20 21:57:30 +01:00 |
|
Matt Silverlock
|
0d52b47a48
|
[docs] Document public symbols; satisfy lint/vet.
|
2016-09-17 11:23:47 -07:00 |
|
Peter Kieltyka
|
9d7c97054c
|
render: add Data() func to serving octet streams
|
2016-09-01 17:18:22 -04:00 |
|
Vojtech Vitek
|
5893a0b4bd
|
render: experimental
|
2016-09-01 16:59:10 -04:00 |
|
Peter Kieltyka
|
a8fcebb98b
|
Update comments and examples, more to come
|
2016-07-26 16:49:44 -04:00 |
|
Peter Kieltyka
|
ce60d25322
|
Move respond.go into main render.go
|
2016-07-22 14:33:08 -04:00 |
|
Vojtech Vitek (V-Teq)
|
60fd6094c0
|
CatchAll presenter
|
2016-07-22 14:14:22 -04:00 |
|
Vojtech Vitek (V-Teq)
|
eed6f4012a
|
Get rid of DefaultPresenter - users must be explicit
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
2aa13bb4f4
|
Get rid of ModifyResponse()
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
f0440b370d
|
Implement Slice presenter
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
59d9031763
|
Implement Channel presenter
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
d82c3e8fd8
|
Detect conversion loop on Register() init rather than on runtime
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
8b9a654d46
|
Add check for duplicate conversion funcs
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
c328ccb3ac
|
Change Presenter func signature - require *http.Request
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
35198e6e56
|
ModifyResponse var instead of DefaultRespond
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
e23fe27462
|
Enable Presenter for EventStream
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
9c93bf1299
|
Render channels into EventStream or Slice
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
6d030cf9a1
|
Improve Status rendering, add .NoContent()
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
1f6d23d5f0
|
Use JSON encoder (with go1.7's features) instead of buffer
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
54dd190ba1
|
PR feedback: Use contextKey struct as in net/http
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
b62a7a5176
|
Get rid of render.ParseContentType
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
3d334c4e8d
|
Fix references to "context" pkg
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
0c392f4b79
|
Render + Presenter for chi v2
|
2016-07-22 14:13:12 -04:00 |
|
Vojtech Vitek (V-Teq)
|
676f9eb9d7
|
Improve render API
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
b6ac010d33
|
PR feedback: Rename file
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
24e003c3c8
|
Remove JSON [] for nil array by default
Custom Render() should be used instead.
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
bf1ef26ae2
|
go1.7: TODO for render.JSON() method
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
2a6cb9b377
|
respond.PlainText() instead of .String()
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
64e294d5c3
|
Check Presenter func types on runtime
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
3bd03f4eb3
|
Revert content-types
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
2d3b3848a1
|
Presenter in a render pkg, define ctxKeys
|
2016-07-22 14:12:36 -04:00 |
|
Vojtech Vitek (V-Teq)
|
fd607faf81
|
Render + conversion function POC
|
2016-07-22 14:12:10 -04:00 |
|
Peter Kieltyka
|
fcf86143a1
|
Add some notes and fix middlewares
|
2016-05-08 09:54:35 -04:00 |
|
Peter Kieltyka
|
c941a5e2d2
|
Update middlewares for go1.7
|
2016-04-10 21:22:38 -04:00 |
|
Peter Kieltyka
|
3031602cdf
|
Document methods
|
2016-04-03 11:56:35 -04:00 |
|
Alexandre Fiori
|
745bb8c974
|
Cleanup
|
2016-03-30 18:52:02 -04:00 |
|
Peter Kieltyka
|
3918c16acc
|
Drain response body in render Bind
|
2016-03-29 16:53:34 -04:00 |
|
Peter Kieltyka
|
4efcb0ecc0
|
Baseline responder subpackage: render
|
2016-03-22 09:54:31 -04:00 |
|