1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-26 20:54:00 +02:00
Commit Graph

217 Commits

Author SHA1 Message Date
Vishal Rana
c4caeb8ffb more godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-19 15:47:20 -07:00
Vishal Rana
e16b929900 Middleware fix #407
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-16 08:24:25 -07:00
Vishal Rana
030a9a4ad1 #407, just fixed fasthttp response writer
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-15 15:55:46 -07:00
Vishal Rana
b10c93cd17 Fixed #401 & Godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-14 20:03:20 -07:00
Vishal Rana
0465314380 Fixed #400
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-14 12:21:47 -07:00
Vishal Rana
abc669bd07 Fixed #399
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-14 08:18:02 -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
ac25928fd0 Closes #393
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 11:49:45 -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
a7697fe480 Fixed #391
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-12 09:30:05 -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
25e72d623e Fixed recover and gzip middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-10 16:35:20 -08:00
Vishal Rana
8ee864ae08 Dropped Engine**#Object functions
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-03-10 12:05:33 -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
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
c19442d023 Sync pool for fasthttp
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-21 19:58:19 -08:00
Vishal Rana
c8725ae244 Context#Redirect
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-20 12:54:43 -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
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
6bb871fe3a Dropped json and xml indent, added jsonblob.
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-10 16:51:43 -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
0731959a98 Object method to get real object
Signed-off-by: Vishal Rana <vr@labstack.com>
2016-02-08 16:48:03 -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
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
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
2483d2a140 Reset Echo in Response#reset()
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-12-02 08:07:22 -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
f54cdd86d0 Removed prinftf from Context#String and Context#HTML, #154
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-24 20:08:36 -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
9d11990cbb Closes #104
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-22 10:38:02 -08:00
Vishal Rana
13340e2b0f Fixed #259
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-13 07:59:13 -08:00
Vishal Rana
56954bc0b6 Closes #235, Closes #203
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-12 20:23:14 -08:00
Vishal Rana
46a9318172 Fixed typo in godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-11-07 20:06:58 -08:00
Marcin Tojek
31b657e1d2 JSONIndent, XMLIndent, changes after review 2015-11-08 00:39:09 +01:00
Marcin Tojek
1bfd7762ca JSON Pretty Print 2015-11-01 19:48:55 +01:00
Vishal Rana
2cca641ffb Fixed #237
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-16 07:51:42 -07:00
Vishal Rana
850bc503b0 Context.File signature changed
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-13 07:09:53 -07:00
Vishal Rana
5f01299246 Context.File now accepts name of attachment
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-11 11:43:27 -07:00
Vishal Rana
5b019c507e Handling 405 & pre-flight requests
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-06 06:48:33 -07:00
Vishal Rana
5a71f202f5 Updated docs, fixed #225.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-02 11:24:59 -07:00
Vishal Rana
1daa16d6fb Added attachment as option in Context.File function
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-08-24 22:01:25 -07:00
Vishal Rana
031c14f0f7 Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-08-04 19:45:44 -07:00
Vishal Rana
6fdd292a1f Closed #170
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-31 19:25:03 -07:00
Vishal Rana
832fd111d4 Binder interface instead of BinderFunc
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-30 14:43:22 -07:00
Vishal Rana
d077efe91a Fixed #162
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-27 08:43:11 -07:00
Vishal Rana
1ae7ef40e0 Don't send http error if response already committed.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-24 18:54:42 -07:00
Will Fitzgerald
9257875cb7 Added JSONP API in Context
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-24 16:23:35 -07:00
axdg
523ac4a9a0 Handle invalid status code in Context.Redirect
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-24 15:09:41 -07:00
Vishal Rana
99f2868bcc Refactored contants for media types
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-22 04:44:29 -07:00
Vishal Rana
17c83a01a4 Fixed #149
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-20 19:24:33 -07:00
Vishal Rana
e550355a5f Update docs with new API
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-16 23:03:45 -07:00
Chris Seto
22ad37bace Context.Redirect now returns an error
Context.Redirect will now return nil allowing users to do:
    return context.Redirect(...)
  rather that having to return nil everytime Redirect is used, ie:
    context.Redirect(...)
    return nil
2015-07-14 21:35:28 -04:00
Vishal Rana
6d733d3120 Fixed #1 - Reset context
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-14 10:56:23 -07:00
Vishal Rana
6430299ca0 Fixed #135
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-13 23:36:56 -07:00
Nicolas Pouvesle
1757d1f8c7 Added XML encoding/decoding API.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-11 16:01:11 -07:00
Vishal Rana
62bc8575ce Added JWT recipe
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-08 22:29:53 -07:00
Vishal Rana
ba42c8f32c Clear echo.Response if there is error while rendering.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-07 17:34:59 -07:00
Vishal Rana
8f489d47f3 Added new APIs
Context.Query - Read query param
Context.Form - Read form param

Fixed #124

Signed-off-by: Vishal Rana <vr@labstack.com>
2015-07-05 11:08:17 -07:00
Vishal Rana
1220ca38f2 Add recipes section in docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-06-30 11:51:08 -07:00
Vishal Rana
e13719cf16 Index out of bound error #103
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-06-20 18:56:51 -07:00
Vishal Rana
33886c8758 Improved router performance
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-06-05 15:08:32 -07:00
Vishal Rana
e7c1d5d9fb Not need of Echo.SetMaxParam
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-06-03 15:18:27 -07:00
Vishal Rana
a9e49e2430 Total coverage for middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-30 10:54:55 -07:00
Vishal Rana
b526a0df5b Better tests for context.go
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-29 17:20:13 -07:00
Vishal Rana
76e9b44190 Exposed DefaultHTTPErrorHandler function
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-28 16:50:49 -07:00
Vishal Rana
bf85c56b08 Encapsulated fields and exposed public functions.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-22 04:40:01 -07:00
Vishal Rana
cfd6d8b77f Better HTTP status in basic auth middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-21 14:02:29 -07:00
Vishal Rana
13ac746093 Refactored Echo.HandlerFunc, added WebSocket support.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-20 14:38:51 -07:00
Vishal Rana
73fa05f826 Added panic recover middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-17 22:54:29 -07:00
Vishal Rana
1ee3bc23e3 Added gzip middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-15 12:29:14 -07:00
Vishal Rana
8ace8e2143 Refactored media types and headers
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-10 22:34:31 -07:00
Vishal Rana
b416efc71c Adding NewContext function to facilitate testing
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-08 11:52:06 -07:00
Vishal Rana
04cdefb2a6 Fixed #51
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-08 11:21:50 -07:00
Vishal Rana
f80fff4efb issue #50
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-05-05 21:55:49 -07:00
Vishal Rana
02ca5e4443 Fixed #44
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-28 23:09:30 -07:00
Vishal Rana
6a1ba5883c More documentation
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-28 18:53:57 -07:00
Vishal Rana
0a075ce7c5 Fixed catch all param
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-26 09:48:49 -07:00
Vishal Rana
2b87e75870 Fixed #38, #30
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-25 22:32:20 -07:00
Vishal Rana
eee38a6376 Fixed #35
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-24 15:13:06 -07:00
Vishal Rana
948198e624 Improved docs & refactored errors
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-19 22:04:30 -07:00
Vishal Rana
3eeea660fa Dropped support for func(http.Handler) http.Handler middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-19 16:00:23 -07:00
Vishal Rana
381fbae1ff Default handler now returns error.
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-18 16:47:48 -07:00
Vishal Rana
ba35efed61 Can set custom binder #18
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-15 10:10:05 -07:00
Vishal Rana
670e21d80e Renderer example
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-10 21:48:26 -07:00
Vishal Rana
6633a1fca7 New renderer interface #21
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-09 14:59:31 -07:00
Vishal Rana
8f7c55e0ac Refactored response
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-09 11:04:33 -07:00
Vishal Rana
a95d6668f3 #10
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-07 13:02:23 -07:00
Vishal Rana
cff9ce5ae6 api changes in context
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-06 08:09:38 -07:00
Vishal Rana
eed30582ae c.Text > c.String
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-06 07:52:00 -07:00
Vishal Rana
47fb44deb5 More coverage and cleanup
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-05 20:08:52 -07:00
Vishal Rana
c2d29f3895 more coverage
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-05 15:30:03 -07:00
Vishal Rana
9d44f49ccc More binding and rendering functions
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-05 14:21:03 -07:00
Vishal Rana
d0f44c90ba Minor changes in router
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-03 15:40:36 -07:00
Vishal Rana
92e7a6c72c Added errors
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-02 20:18:34 -07:00
Vishal Rana
d8aae6ea43 Changes for sub router #10
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-04-02 05:02:52 -07:00
Vishal Rana
8b800e12a2 Improved test cases
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-30 07:38:53 -07:00
Vishal Rana
e08b3f78e8 Coverage for handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-29 23:35:08 -07:00
Vishal Rana
064a69d1dc New name for repo
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-27 14:21:30 -07:00
Vishal Rana
827177a814 Cleanup
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-27 08:47:58 -07:00
Vishal Rana
690af22072 Fixed build error
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-25 10:03:26 -07:00
Vishal Rana
e49e74aeac Flexible handler and middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-25 08:50:24 -07:00
Vishal Rana
1aad369f59 Wrote some godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-14 17:20:21 -07:00
Vishal Rana
753215ad03 Wrote some godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-14 16:26:44 -07:00
Vishal Rana
40330ae7c0 Middleware example
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-12 20:50:33 -07:00
Vishal Rana
a268e01746 Added serve index and file methods
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-08 23:58:10 -07:00
Vishal Rana
05e8fee3de Added response already committed logic
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-06 11:12:33 -08:00
Vishal Rana
91bbd38251 Bind and render functions
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-05 20:46:17 -08:00
Vishal Rana
9f6f4e8afb Remove socket supoort
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-02 10:19:30 -08:00
Vishal Rana
7c9a0b6489 initial commit
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-03-01 09:45:13 -08:00