1
0
mirror of https://github.com/labstack/echo.git synced 2024-11-28 08:38:39 +02:00
Commit Graph

272 Commits

Author SHA1 Message Date
Vishal Rana
f4088cf594 Added JSON logging
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-08 17:16:03 -07:00
Vishal Rana
a0bc02815f Fixed #551 2016-06-06 16:56:09 -07:00
Vishal Rana
4e98fa9664 Fixed #500
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-06 09:47:22 -07:00
Vishal Rana
d0ed5830c4 Test coverage for cookie.go and context.go
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-05 22:25:34 -07:00
Vishal Rana
09a2ce60a6 About context #500
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-06-05 13:47:59 -07:00
Ollie Phillips
c71ecb845c For consistency, added additional header constant for 'Allow' named 'HeaderAllow', which is missing when forming responses to OPTIONS method requests 2016-06-02 21:40:21 +01:00
Vishal Rana
0d2dac7532 Fixed #536
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-31 20:59:52 -07:00
Vishal Rana
a98843b6e5 Logger as interface, fixed #533, fixed #349, fixed #304
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-31 18:29:11 -07:00
Vishal Rana
23eb4f87db API to define a custom logger
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-29 08:34:44 -07:00
Vishal Rana
7a66f226f2 Changed website url
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-24 14:51:26 -07:00
Vishal Rana
c24f06e7cb Fixed #520
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-22 08:45:36 -07:00
Vishal Rana
795ab0ad77 Error handler now printing error messages
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-19 08:30:20 -07:00
Vishal Rana
98dd8bf9e9 Added CSRF middleware, #341.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-12 17:45:00 -07:00
Vishal Rana
682a5580b7 Deprecated Echo#GetContext() => Echo#AcquireContext(), Echo#PutContext() => Echo#ReleaseContext()
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-03 17:23:31 -07:00
Vishal Rana
6424d779dc Added test for secure middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-03 08:32:28 -07:00
Vishal Rana
f0526349ff Fixed #499
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-02 22:41:07 -07:00
Vishal Rana
190cf80d02 Fixed #432, Fixed #167.
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-05-02 16:19:35 -07:00
Vishal Rana
cb752141f2 Add form binding
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-05-01 12:38:51 -07:00
Vishal Rana
0edb17e978 Added body limit middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-30 20:08:06 -07:00
Victor Gaydov
4fd9f14769 Add echo.Binder() method 2016-04-28 10:30:47 -07:00
Vishal Rana
24a19223b0 Added method override middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-27 21:08:30 -07:00
Vishal Rana
be825e0229 Refactored variable names
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-24 10:22:15 -07:00
Vishal Rana
1247552c9b Fixed https://github.com/labstack/echox/issues/9
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-20 07:32:51 -07:00
Vishal Rana
1c2d6341ba Fixed #474
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-18 16:59:58 -07:00
Vishal Rana
467cf05b41 Changes based on comments for #430
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-16 15:56:09 -07:00
Vishal Rana
fd104333f2 Fixed #430, Closes #469
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-16 09:15:37 -07:00
Vishal Rana
288164d00a Server header constant
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-14 12:26:54 -07:00
Vishal Rana
909f6dacf3 Update docs
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-04-13 13:28:13 -07:00
Vishal Rana
94a16d25a3 Fixed #461
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-11 23:21:32 -07:00
Vishal Rana
01ac846770 Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-10 21:41:24 -07:00
Vishal Rana
130c548826 Closes #459, #457.
- Static back as middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-10 20:56:10 -07:00
Vishal Rana
2f8639b7e6 Just some variable changes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-09 16:09:50 -07:00
Vishal Rana
33700bfcc2 Fixed #457
- Dropped static middleware in favor of Echo#Static & Echo#StaticConfig.
- Enhanced middleware chaining.

Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-09 14:00:23 -07:00
Vishal Rana
a3352d880c Fixed #454, Fixed #274
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-07 16:16:58 -07:00
Vishal Rana
8b5772cf65 Proper header and MIME constants
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-06 07:29:47 -07:00
Vishal Rana
28fb57585b Fixed godoc example
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-05 15:51:15 -07:00
Vishal Rana
2dc1d53da5 Fixed #446
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-04 22:49:14 -07:00
Vishal Rana
bcbd9a0f42 Updated README.md
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-04 20:10:19 -07:00
Vishal Rana
b5d6c05101 Fixed #441, #294
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-04-02 14:24:51 -07:00
Vishal Rana
ba46c48cba Enhanced static middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-31 08:41:02 -07:00
Vishal Rana
a2d757eddc Closes #434
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-27 16:29:41 -07:00
Vishal Rana
a66162a3d2 Logging middleware fixes
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-21 17:27:14 -07:00
Vishal Rana
3d656d1808 Default log level to error
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-21 08:43:28 -07:00
Vishal Rana
b47abdb9ec Fixed #424, #427
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-20 08:14:55 -07:00
Vishal Rana
c4caeb8ffb more godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-19 15:47:20 -07:00
Vishal Rana
d01e856db6 Closes #423
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-19 08:38:35 -07:00
Vishal Rana
4d30b193ad #410, actually timestamp.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-18 20:02:02 -07:00
Vishal Rana
3946a1839c New API Echo#GetContext & Echo#PutContext.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-17 21:49:06 -07:00
Vishal Rana
e159f4d7ef Making Echo#Pre actually work.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-17 13:24:52 -07:00
Vishal Rana
3abe661e72 Fixed nested group middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-16 20:25:58 -07:00
Vishal Rana
111d65a5b4 Fixed engine.test
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-16 16:15:40 -07:00
Vishal Rana
f78c0662c1 Fixed #404
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-16 14:26:34 -07:00
Vishal Rana
2d6aaa8a33 Fixed #405
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-15 08:33:57 -07:00
weisdd
cc6b31d0ef Closes #396, echo#WrapMiddleware check error.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-13 10:18:51 -07:00
Vishal Rana
7942e4a77b Engine#Multipart,#FormFile. Closes #394.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 18:32:36 -08:00
Vishal Rana
5b5df5bf44 Last-Modified header for static content
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 10:18:40 -08:00
Vishal Rana
082814c776 Fixed #387
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 05:14:15 -08:00
Vishal Rana
09f3d3061f Closes #314
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-11 07:53:54 -08:00
Vishal Rana
25e72d623e Fixed recover and gzip middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-10 16:35:20 -08:00
Vishal Rana
296498c942 Fixed nested groups, reset Context#handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-08 19:31:11 -08:00
Vishal Rana
f4a5abc8b2 Removed Context#Socket
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-08 08:14:25 -08:00
Vishal Rana
b6deec4897 WrapMiddleware for echo.Handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-07 07:55:26 -08:00
Vishal Rana
6a74849290 Handler wrapper in their respective packages #294
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-06 20:53:23 -08:00
Vishal Rana
569d72cd76 Fixed import cycle
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-06 16:43:47 -08:00
Vishal Rana
e1d789ecbb Logger as not an interface
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-06 09:52:32 -08:00
Vishal Rana
a9c88cad63 Fixed #310
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-05 20:03:11 -08:00
Vishal Rana
8916d5558c GAE fix
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-04 20:19:59 -08:00
Vishal Rana
e1a7549855 Removed Middleware#Priority
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-20 16:20:10 -08:00
Vishal Rana
b97a2c5ad6 Fixed group middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-20 08:11:02 -08:00
Vishal Rana
91ae93ebfc Removed HTTP2 option
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-18 14:04:28 -08:00
Vishal Rana
e91717552f Fixed response header and get handler name
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-17 11:58:03 -08:00
Vishal Rana
caf3bd31eb - Handler and middleware signature changed
- Pre chain middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-15 19:32:16 -08:00
Vishal Rana
51acf465fe - Moved static file serving to a new handler package
- Middleware at route level
- Group middleware is a in closure now

Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-15 08:11:29 -08:00
Vishal Rana
94e5936287 Fixed test cases
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-02-09 19:07:04 -08:00
Vishal Rana
8444488a2b Fixed package dependencies
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-02-09 13:37:38 -08:00
Vishal Rana
bf97da9a16 Exclude fasthttp in appengine
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-02-09 11:43:00 -08:00
Vishal Rana
4982169106 Minor fixes to fasthttp
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2016-02-09 08:12:37 -08:00
Vishal Rana
7b843e66c5 Wrappers for handler and middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-08 22:17:20 -08:00
Vishal Rana
3cd1d5be65 Fixed sync.Pool
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-08 17:26:00 -08:00
Vishal Rana
3f48b92c5d RunWithConfig to RunConfig
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-08 11:09:34 -08:00
Vishal Rana
f27de9a804 Fixed logging
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-04 19:29:49 -08:00
Vishal Rana
f405794a7c Now using sync.Pool
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-04 14:40:08 -08:00
Oleg Lobanov
981e3adc1c Change context.Bind() return type to HTTPError. #344 2016-01-31 02:13:56 +04:00
Vishal Rana
4f577981b3 Dropped Go 1.4
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-01-29 09:16:05 -08:00
Vishal Rana
688293b5ed v2 is compiling now
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-01-28 23:46:11 -08:00
Vishal Rana
dbd1e8e230 Separated recipes from the main repo
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-01-09 11:00:13 -08:00
Vishal Rana
33d8813eb5 Revert "Revert "Fixed Request.Out""
This reverts commit 72050d765b.
2015-12-21 15:20:49 -08:00
Vishal Rana
72050d765b Revert "Fixed Request.Out"
This reverts commit cced590a16.
2015-12-21 15:18:53 -08:00
Vishal Rana
cced590a16 Fixed Request.Out
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2015-12-21 15:18:03 -08:00
Vishal Rana
0884290766 Added X() method to return context
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-04 08:13:26 -08:00
Vishal Rana
72459fe299 Step towards v2
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-03 17:23:53 -08:00
Vishal Rana
5cd194b6b0 Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-03 14:14:14 -08:00
Vishal Rana
9650c39055 Bumped to v1.3
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-01 15:06:18 -08:00
Vishal Rana
754c84596e Prevent caching for dynamic directory
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-24 07:38:28 -08:00
Vishal Rana
521cf5338e Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-23 22:15:59 -08:00
Vishal Rana
d932e2a863 Added directory autoindex
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-23 22:12:56 -08:00
Vishal Rana
2ad06ce67e Fixed #265
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-22 09:26:11 -08:00
Vishal Rana
4f996419e1 Fixed #255
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-20 19:39:35 -08:00
Vishal Rana
c578a662a0 Closes #261
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-19 07:40:24 -08:00
Vishal Rana
f09efac326 Revert #257
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-16 07:57:40 -08:00