Peter Kieltyka
b58e609d0a
Update graceful example using ServerBaseContext
2020-12-05 14:59:26 -05:00
Peter Kieltyka
3b1ab84c7d
Update chi logo
2020-11-27 19:58:17 -05:00
Peter Kieltyka
f36dec5699
Update chi logo
2020-11-27 19:55:16 -05:00
Peter Kieltyka
014d4cc44c
examples: update fileserver example with much more flexible impl
2020-04-04 14:53:08 -04:00
Peter Kieltyka
a0d61e3faf
update _examples/logging
2020-04-02 08:41:44 -04:00
Peter Kieltyka
d54e3e9912
middleware.Recoverer, stack formatting
2020-03-24 16:10:02 -04:00
Dominik Schmidt
e363f436e0
Make fileserver example a little more elaborate.
...
While it's trivial to remove the basePath from the code, it wasn't quite obvious to me which paths I had to strip where to make the fileserver work if not mounted to /.
2020-01-08 21:17:15 -05:00
Vladimir Bauer
a86787d732
drop unused type ( #406 )
2019-03-05 03:31:54 -05:00
Peter Kieltyka
694f89b77d
remove use of go mod in examples, problematic
2019-01-09 10:30:14 -05:00
Peter Kieltyka
72cec81ea8
update README, and add go.mod to _examples
2019-01-09 10:13:46 -05:00
Peter Kieltyka
c88f06fe64
fixes #347 deprecate http.CloseNotifier
2019-01-09 09:32:43 -05:00
Peter Kieltyka
0ae339de6d
fix travis
2018-12-21 08:56:01 -05:00
Peter Kieltyka
1cbe2fe0bc
Go1.11 travis ( #345 )
...
* add go 1.11.x to travis ci
* fix test vet warnings
* update example formatting with new goimports
2018-08-26 17:07:09 -04:00
Jeff Stiles
0c5e7abb4e
Update rest example to fix #314 , nil pointer dereference ( #328 )
2018-07-10 09:45:11 -04:00
Igor Varavko
e0ba5d4039
Fix 'elasped' misspelling of 'elapsed' ( #273 )
2017-10-20 16:36:20 -04:00
Vladimir Bryksin
8dfd99e5cd
New example ( #272 )
...
* Routes walk example
* Routes walk example
* Fixed Ping description
* Router walk example
2017-10-17 10:38:20 -04:00
Peter Kieltyka
d806569952
New chi.RegisterMethod(method) to add support for custom HTTP methods ( #271 )
2017-10-10 17:28:23 -04:00
Peter Kieltyka
25354a53cc
go vet and golint the project, release 3.1.5
2017-08-02 17:27:05 -04:00
solarhell
4c5a584b32
Fix typo ( #228 )
2017-07-12 08:12:00 -04:00
Peter Kieltyka
49e7138cab
organize routing patterns as endpoints with pattern, handler, paramKeys in the leaf nodes
2017-07-09 19:17:12 -04:00
Peter Kieltyka
316a2378f7
Update custom-handler example
2017-07-05 18:26:22 -04:00
Peter Kieltyka
43bbbc8584
Move docgen and render sub-pkgs to github.com/go-chi/ org
2017-07-04 15:48:41 -04:00
Peter Kieltyka
bba0991923
Update go1.8 graceful example as primary example
2017-06-27 17:00:18 -04:00
Anton Skorokhod
bd791a3008
Graceful example for golang >= 1.8 ( #213 )
2017-06-27 16:56:16 -04:00
Peter Kieltyka
18d990c0d1
Update _examples/fileserver example
2017-06-23 13:43:51 -04:00
Peter Kieltyka
23d479b5b7
Update _examples/rest with regexp example
2017-06-21 14:38:47 -04:00
Peter Kieltyka
7c1f98d442
Update import path in example, thank you @samwierema for the fix
2017-06-21 11:30:49 -04:00
Peter Kieltyka
02e6bbdfd1
v3.0.0 release
2017-06-21 10:43:59 -04:00
Peter Kieltyka
6cbda14c15
Remove FileServer from Mux, and offer as snippet helper code to users to build their own
2017-06-21 10:43:59 -04:00
Peter Kieltyka
26633cbf62
Introduce Method and MethodFunc to Router, supporting string defined http methods, along with example for custom http handler support
2017-06-21 10:43:59 -04:00
Peter Kieltyka
8f717baab4
v3 beta 1
2017-06-21 10:43:59 -04:00
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
2810210403
Add suggestion about using github.com/pkg/errors for error renderers
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
Peter Kieltyka
7765b0916f
Remove CloseNotify middleware for go 1.8+, its the default behaviour
2017-01-25 15:47:12 -05:00
Peter Kieltyka
18893e620d
Set log standard flags on default logger middleware
2016-12-15 10:15:07 -05:00
Peter Kieltyka
badf07aee0
Comments, include minimal hello-world example and CloseNotify test
2016-12-09 11:46:22 -05:00
Peter Kieltyka
7c51c558b5
New _examples/logging which implements a StructuredLogger using Sirupsen/logrus as the backend
2016-11-23 20:13:06 -05:00
Peter Kieltyka
2cad94402b
Update graceful example
2016-10-07 15:28:15 -04:00
Peter Kieltyka
c7a419237d
Update import path in graceful example
2016-10-07 14:49:25 -04:00
Peter Kieltyka
630ea6f7dc
Rename WithBaseContext() to ServerBaseContext()
2016-10-07 11:17:13 -04:00
Peter Kieltyka
f66859c490
Graceful shutdown example using goware/valve and tylerb/graceful
2016-10-07 11:10:00 -04:00
Peter Kieltyka
77afe31e8e
docgen/markdown case
2016-10-06 11:06:29 -04:00
Peter Kieltyka
12460ba1de
Slight improvements to docgen/markdown and add heartbeat middleware
2016-10-06 11:04:58 -04:00
Peter Kieltyka
4d04c9ffd5
Update example routes.md
2016-09-20 14:17:35 -04:00
Peter Kieltyka
d570fa20e9
githubSourceURL generation with to file/loc
2016-09-20 14:16:48 -04:00
Peter Kieltyka
8a564199ae
Update md for linking to source
2016-09-19 15:28:19 -04:00
Peter Kieltyka
6ab845b0f5
Attempt link to files in md
2016-09-19 15:26:32 -04:00
Peter Kieltyka
1870f86809
Sort route paths
2016-09-19 12:46:05 -04:00