Manu Mtz-Almeida
d4dec77afa
Adds unit tests for RedirectTrailingSlash & RedirectFixedPath
2015-07-04 14:13:25 +02:00
Manu Mtz.-Almeida
13b88673a2
Merge pull request #363 from error10/patch-1
...
RedirectTrailingSlash has no effect unless RedirectFixedPath is set
2015-07-04 13:37:42 +02:00
error10
2b8ed80da0
RedirectTrailingSlash has no effect unless RedirectFixedPath is set
...
Which is not likely the desired behavior.
RedirectTrailingSlash setting is meant to cause a redirect, but the code is never called because the setting wasn't being checked. Instead RedirectFixedPath was being checked.
2015-07-04 00:05:53 -04:00
Javier Provecho Fernandez
7c0c427b2d
Fix #252 typo (middlewares -> middleware)
2015-07-03 20:12:01 +02:00
Manu Mtz-Almeida
0316b735c4
More unit tests
2015-07-03 04:20:18 +02:00
Manu Mtz-Almeida
4194adce4c
Adds additional bindings for multipart and form
2015-07-03 04:20:00 +02:00
Manu Mtz-Almeida
8f3047814e
Comments + IRoutes + IRouter + unexported AbortIndex
2015-07-02 20:24:54 +02:00
Manu Mtz-Almeida
13f57702d4
Adds more c.Next() just to be sure
2015-07-02 18:45:09 +02:00
Manu Mtz-Almeida
16b08c41c9
Merge branch 'fix_is_aborted_method' of https://github.com/adwinsky/gin
2015-07-02 18:42:41 +02:00
Manu Mtz-Almeida
a20984c2bc
Adds comments
2015-07-02 18:42:33 +02:00
Adam Dratwinski
050a55b006
Use c.Next() instead of c.index++ in UnitTest
2015-07-02 16:37:35 +02:00
Adam Dratwinski
74f5051cb5
Fix IsAborted() method
2015-07-02 13:37:11 +02:00
Donn Pebe
c1719f7e20
Use only the ip part of request RemoteAddr
2015-07-02 01:48:21 +07:00
Manu Mtz-Almeida
4cc2de6207
Refactors warning messages
2015-06-26 16:08:55 +02:00
Manu Mtz-Almeida
9268afb15d
Cosmetic changes
2015-06-26 16:05:09 +02:00
Manu Mtz-Almeida
9e44079756
RoutesInterface includes Group()
2015-06-26 16:01:35 +02:00
Manu Mtz.-Almeida
88a65eacff
Merge pull request #348 from WnP/master
...
Exporting routesInterface
2015-06-26 15:27:51 +02:00
Manu Mtz-Almeida
95c08d5f84
Adds HandlerName()
2015-06-25 19:44:52 +02:00
Steeve Chailloux
4238c5b83d
make routesInterface exported
2015-06-23 15:57:21 -05:00
Manu Mtz-Almeida
1a7ab6e4d5
Fixes gin.Routes() tests
2015-06-18 17:17:22 +02:00
Manu Mtz-Almeida
451f3b988b
Merge branch 'routes-list'
2015-06-18 17:08:05 +02:00
Manu Mtz-Almeida
d6425f1692
We do not longer have to call JSON() explicitly
2015-06-13 16:42:12 +02:00
Manu Mtz-Almeida
352868ef90
Add support for custom HTML and XML content-type
2015-06-13 04:43:23 +02:00
Manu Mtz-Almeida
a7c957af7d
Adds supports for custom JSON Content-type
2015-06-13 04:29:10 +02:00
Manu Mtz-Almeida
22f118f3b6
Adds gin.Bind() usage panic!
2015-06-13 00:01:02 +02:00
Manu Mtz-Almeida
ab447bb188
Adds Bind() middleware
2015-06-12 23:42:54 +02:00
Manu Mtz-Almeida
7e7004a224
Improves errors.ByType() implementation
2015-06-12 21:34:06 +02:00
Manu Mtz-Almeida
c0383dff6b
Adds IsType() helper
2015-06-12 21:33:16 +02:00
Manu Mtz-Almeida
00b279c66b
Adds SetHTMLTemplate() warning
2015-06-12 18:09:44 +02:00
Manu Mtz-Almeida
4998bc2b2e
Fixes pipeline API
2015-06-11 01:02:38 +02:00
Manu Mtz-Almeida
86c75ce95d
Adds collection pipeline pattern
2015-06-10 17:10:34 +02:00
Manu Mtz-Almeida
9db3afebc6
Updates README
2015-06-09 22:51:59 +02:00
Manu Mtz-Almeida
dded099609
Cosmetic changes
2015-06-07 13:51:35 +02:00
Manu Mtz-Almeida
58b5e15870
Adds ForwardedByClientIP option
2015-06-07 13:51:13 +02:00
Manu Mtz-Almeida
74fe36fa48
Routes() returns the function name of the main handler
2015-06-07 13:49:36 +02:00
Manu Mtz-Almeida
c7d2d82d01
gofmt
2015-06-07 04:26:30 +02:00
Manu Mtz-Almeida
45dd777693
List of routes
2015-06-07 04:20:39 +02:00
Manu Mtz-Almeida
042046e1f8
Improves travis configuration
2015-06-06 17:35:30 +02:00
Manu Mtz-Almeida
dde06a07f0
Logger only prints internal errors
2015-06-06 17:24:16 +02:00
Manu Mtz-Almeida
70325deb98
c.ClientIP() performance improvement
...
benchmark old ns/op new ns/op delta
BenchmarkManyHandlers 4956 4463 -9.95%
benchmark old allocs new allocs delta
BenchmarkManyHandlers 16 13 -18.75%
benchmark old bytes new bytes delta
BenchmarkManyHandlers 256 216 -15.62%
2015-06-04 13:15:22 +02:00
Manu Mtz-Almeida
822b995687
c.JSON performance improvement
...
benchmark old ns/op new ns/op delta
BenchmarkOneRouteJSON 1143 1053 -7.87%
benchmark old allocs new allocs delta
BenchmarkOneRouteJSON 4 3 -25.00%
benchmark old bytes new bytes delta
BenchmarkOneRouteJSON 72 56 -22.22%
2015-06-04 13:08:29 +02:00
Manu Mtz-Almeida
56683d33b1
c.String() performance improvements
...
```
benchmark old ns/op new ns/op delta
BenchmarkOneRouteString 448 310 -30.80%
benchmark old allocs new allocs delta
BenchmarkOneRouteString 1 0 -100.00%
benchmark old bytes new bytes delta
BenchmarkOneRouteString 48 0 -100.00%
```
2015-06-04 12:53:42 +02:00
Manu Mtz-Almeida
7186200309
Improves performance tests
2015-06-04 12:50:52 +02:00
Manu Mtz-Almeida
971c44c8a8
Updates godep
2015-06-04 11:48:17 +02:00
Manu Mtz-Almeida
1f56e50083
Using Render() instead of Write()
2015-06-04 05:25:21 +02:00
Manu Mtz-Almeida
92475baba6
Adds more units tests
2015-06-04 04:50:40 +02:00
Manu Mtz-Almeida
ee021d06ea
More unit tests
2015-06-04 04:32:18 +02:00
Manu Mtz-Almeida
f199a21486
Updates README
2015-06-04 03:24:28 +02:00
Manu Mtz-Almeida
b99f210f06
Updates README
2015-06-04 02:49:14 +02:00
Manu Mtz-Almeida
0b043d0886
Fixes performance regression
2015-06-04 01:54:36 +02:00