Commit graph

57 commits

Author SHA1 Message Date
Olivier Mengué
6adf733e0e
Improve godoc: add links and titles (#1027) 2026-08-20 12:39:33 +02:00
Vojtech Vitek (golang.cz)
caf87e6e1b
feat(mux): support http QUERY method ietf rfc10008 (#1132)
* feat(mux): support http QUERY method ietf rfc10008

* refactor(mux): unexport the temporary QUERY method constant

---------

Co-authored-by: PJ O'Leary <peej@oleary.com>
2026-07-05 20:13:24 +02:00
狗娃子
f975af0cb1
Fix typo in Route doc comment (#1073) 2026-05-16 16:34:19 +02:00
James Raspass
de0d16e6d2
Update comment about min Go version (#1023)
This wasn't updated in either #969 or #1017 and is the first thing people read on pkg.go.dev.
2025-10-09 21:21:01 +02:00
Steven Dee (Jōshin)
23c395f852
Correct documentation (#992)
It appears as though regular expression quantity support was added by
#245. This updates the documentation to reflect that.
2025-06-20 14:21:10 +02:00
Joseph Tams
df0303d61b
Fixed incorrect comment about routing (#887)
The comment was meant to demonstrate how non-wildcard routes can match
wilecard routes, but there was likely a typo that made it incorrect.
2024-09-18 16:09:34 +02:00
Joseph Riddle
1089a7c695
Add Find to Routes interface (#872)
* Add Find to Routes interface

* Add example of using Routes.Find

* Rename find-pattern example

* And find_pattern middleware

* Refactor find-pattern example to use official FindPattern middleware

* Remove middleware.FindPattern for now

---------

Co-authored-by: jriddle <jriddle@axon.com>
Co-authored-by: Vojtech Vitek <vojtech.vitek@golang.cz>
2024-09-18 15:25:35 +02:00
Peter Kieltyka
42a41a8f67 update comment in source 2022-10-27 07:54:02 -04:00
Peter Kieltyka
fe3708ee6c
v5.0.0 (#591) 2021-02-27 19:11:55 -05:00
Peter Kieltyka
7f41cced29 update min Go version to v1.10 in docs 2020-01-10 20:51:23 -05:00
Felix Gläske
5520733615 fix typo of => or 2019-08-22 10:09:16 -04:00
mathew
05458a106b Add pattern documentation (#285) 2017-12-07 18:45:15 -05:00
Peter Kieltyka
d132b31857 middleware.GetHead (#248)
Add Match(..) bool to chi.Routes, and add middleware.GetHead to automatically route missing head requests to GET handlers

* Put chi.Routes pointer on the route Context instead of having to pass to the middleware

* Rename FindHandler to Find, and add breaking test when searching subtrees

* Rename middleware to GetHead, and update Mux#Find method to search subroutes

* Update README, router at ~1000 LOC

* Redefine Routes#Find(..) http.Handler to Routes#Match(..) bool

* Update benchmarks

* Slightly adjust GetHead middleware to make it clearer
2017-08-31 21:51:08 -04:00
Peter Kieltyka
02e6bbdfd1 v3.0.0 release 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
jiop
17a97751f9 Fix missing MethodNotAllowed in Router interface 2016-11-30 14:03:03 +11:00
Jose Carlos Ustra Junior
1c72bb6879 Resolve golint issues that are not related to comments 2016-09-22 13:54:14 -03:00
Peter Kieltyka
a98068174b Remove Any() method from Router 2016-08-19 15:33:27 -04:00
Peter Kieltyka
49861275db Builder first version complete 2016-08-19 15:25:00 -04:00
Peter Kieltyka
4918cd6076 Docgen is almost complete, generated huge docs of pressly/api 2016-08-18 17:58:15 -07:00
Peter Kieltyka
17e9177846 With() is a new method on Router() for setting inline middlewares on a route 2016-08-18 08:24:17 -07:00
Peter Kieltyka
61be033f8e Change inline chain handlers to support doc generation 2016-08-17 16:52:04 -07:00
Peter Kieltyka
500b815b02 Automatic doc generation from Router 2016-08-17 16:52:04 -07:00
Peter Kieltyka
3a5de06a71 Update godocs 2016-07-26 22:15:48 -04:00
Peter Kieltyka
a8fcebb98b Update comments and examples, more to come 2016-07-26 16:49:44 -04:00
Peter Kieltyka
1a9fe67b07 Export Chain() method for mws and endpoint for app use 2016-07-22 15:01:05 -04:00
Peter Kieltyka
e10a47f9d4 Refinements 2016-07-21 22:30:07 -04:00
Peter Kieltyka
853f9c7806 Flatten tree, node and edges structures 2016-07-15 15:51:30 -04:00
Peter Kieltyka
292571a45f Connect subrouters through middleware as separate muxes, begin mounting trees 2016-07-14 16:25:17 -04:00
Peter Kieltyka
f43e79a024 Some moving around, cosmetic 2016-07-11 18:30:13 -06:00
Peter Kieltyka
c54b122dfe Refactor subrouters to build into a single tree 2016-07-11 07:28:48 -06:00
Peter Kieltyka
abdb79e679 Update testRequest and testHandler to return *http.Response 2016-07-06 06:21:41 -04:00
Peter Kieltyka
ecb9ed7835 Todos resource example 2016-07-05 16:36:19 -04:00
Peter Kieltyka
ef4d946aeb Update inline middleware chain signature 2016-07-04 18:00:50 -04:00
Peter Kieltyka
011e91a20e Update a few comments 2016-07-04 16:11:15 -04:00
Peter Kieltyka
5ebdc760ed Trust your gut, going with the original Route/Group interface 2016-07-04 15:53:03 -04:00
Peter Kieltyka
c12bec07f7 Remove parent context from constructors 2016-07-04 15:27:57 -04:00
Peter Kieltyka
6c38bd10bf Rename old-Route to Group and old-Group to Inline 2016-06-20 16:44:29 -04:00
Peter Kieltyka
3c613e2cdf Update chi Router interface; rename v1 Route() to Group() in v2 and v1 Group() to Stack() in v2 2016-06-09 16:40:38 -04:00
Peter Kieltyka
fcf86143a1 Add some notes and fix middlewares 2016-05-08 09:54:35 -04:00
Peter Kieltyka
2b1ed9c5ae Update Router signatures to HandlerFunc 2016-04-11 08:26:05 -04:00
Peter Kieltyka
9c87d91877 chi v2 first pass 2016-04-10 21:02:45 -04:00
Peter Kieltyka
3031602cdf Document methods 2016-04-03 11:56:35 -04:00
Peter Kieltyka
f8b6dfe1ef Routing context improvements 2016-04-02 08:45:37 -04:00
Peter Kieltyka
520d4e05d3 Reuse root context in a sync pool to reduce GC: zero-alloc routing 2016-03-30 09:48:24 -04:00
Peter Kieltyka
78877e85ff NotFound() method on Router 2016-01-06 17:01:37 -05:00
Peter Kieltyka
fffe601cb0 Refinements, tests and performance 2015-11-05 15:54:30 -05:00
Peter Kieltyka
fcedaa8177 Update README with preview example 2015-10-28 16:09:10 -04:00
Peter Kieltyka
0128de055c Update README/comments 2015-10-28 14:52:55 -04:00