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

1101 Commits

Author SHA1 Message Date
Miha Valencic
c04b028852 Support route naming and generating URLs based on route names (#960)
* Route registration methods return Route object

* Renamed Route#Handler to Route#Name

* Adding route return value to Any, Match, Static and File methods.
2017-06-22 10:59:02 -07:00
Vishal Rana
935a60782c Missed version label
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-21 08:07:43 -07:00
Vishal Rana
687f05470a Zhaojkun httperror message (#959)
* Change echo http error message

* Add test case

* Fixed test cases

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-20 08:58:53 -07:00
Nick Hudkins
7676f85ef9 Allow interface{} as key for JWT middleware argument (#957) 2017-06-19 15:42:27 -07:00
Vishal Rana
18ccbf35d8 Update README.md 2017-06-18 23:05:39 -07:00
Vishal Rana
ddd92db03b Update README.md 2017-06-18 22:39:58 -07:00
Vishal Rana
2d7cce4677 Updated godoc
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-15 08:44:21 -07:00
Vishal Rana
e1e3ebe5a1 Proxy middleware refactor
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-15 08:19:18 -07:00
Vishal Rana
e827c85dc5 Issue 950 (#955)
* Added implementation #950

Signed-off-by: Vishal Rana <vr@labstack.com>

* Added test for body-dump middleware

Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-14 23:03:38 -07:00
Vishal Rana
1e51b33509 Create ISSUE_TEMPLATE.md 2017-06-14 21:15:04 -07:00
Vishal Rana
1b70cbebbe Fixed #954
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-14 16:30:53 -07:00
Vishal Rana
ea352bedb6 Merge branch 'master' of https://github.com/labstack/echo 2017-06-12 10:40:08 -07:00
Vishal Rana
3fafadf895 Updated ci
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2017-06-09 19:28:49 -07:00
Vishal Rana
7834248244 Updated ci
Signed-off-by: Vishal Rana <vishal.rana@verizon.com>
2017-06-07 11:48:06 -07:00
Vishal Rana
dc0f2d7327 Fixed url.PathUnescape for go1.7
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-07 08:57:31 -07:00
Vishal Rana
c05db06020 Fixed #947, closes #948
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-07 08:23:43 -07:00
Vishal Rana
3673d7fb44 Enhanced proxy middleware
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-06 15:01:13 -07:00
Vishal Rana
bd96cc3c15 Fixed #947
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-06 14:59:35 -07:00
Vishal Rana
c3887ebb13 Added Context#IsWebSocket(), proxy fix header
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-04 10:39:08 -07:00
TossPig
353a2f8b78 Get The HeaderXForwardedProto (#941)
* Get The HeaderXForwardedProto

https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-Proto

* add HeaderXForwardedSsl

* Get The HeaderXForwardedSsl
2017-06-04 09:41:17 -07:00
Vishal Rana
68b89eca6c Updated godco for middleware/proxy
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-03 21:23:15 -07:00
Vishal Rana
0898d9e68b Exposed proxy balancer interface
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-03 17:37:35 -07:00
Vishal Rana
a8cd0ad133 Closes #942
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-02 18:13:26 -07:00
Vishal Rana
b6a9836120 Moved casbin middlware to echo-contrib
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-06-02 10:19:56 -07:00
卜木
c73dd1f54c Add an authorization middleware that supports ACL, RBAC based on casbin. (#939)
* Add an authorization middleware that supports ACL, RBAC based on casbin.
fix some coveralls check.
change test file with new rule.
renaming the prefix Authz to CasbinAuth
use built-in SetBasicAuth method in test file.
export all casbin auth configs.

* fix example code
2017-06-02 08:20:35 -07:00
Vishal Rana
466d509e34 Fixed #938
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-27 03:10:51 -07:00
Vishal Rana
3359eae306 Add json tags to route struct
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-16 16:29:33 -07:00
Vishal Rana
cb9255e775 Using httptest
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-13 15:44:27 -07:00
Vishal Rana
8f5fb6395a Dropping mutex from ServeHTTP
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-13 14:12:35 -07:00
Vishal Rana
0e134ee37c Closes #928
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-12 10:47:24 -07:00
Vishal Rana
10809fad77 Fixed build
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-11 14:55:11 -07:00
Vishal Rana
33b4940cba Cookbook and website separated from the repo to echox
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-11 08:21:21 -07:00
Vishal Rana
1302a08009 Fixed #925
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-10 10:28:50 -07:00
Vishal Rana
5828f5f215 Updated website
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-05-10 08:52:45 -07:00
aruhi
1827916e76 Add cookie tag for logger (#921)
Thanks for your contribution 🎉
2017-05-08 08:10:11 -07:00
Vishal Rana
533d7a8dc1 Closes #918, docs updated for testing handler
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-29 11:02:57 -07:00
Vishal Rana
883fcb35fb Updated website
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-28 22:24:40 -07:00
Christopher Probst
f3f3e99ba3 Add pointer binding of proper types to DefaultBinder (#915) 2017-04-28 11:07:20 -07:00
Sub
0dfcb31d9e Automatically use JSONPretty/XMLPretty if '?pretty' in querystring (#916)
* Automatically use JSONPretty/XMLPretty if '?pretty' in querystring

* Update unit test cases

* Simplify code according comments

* Update guide for pretty json/xml
2017-04-27 21:41:46 -07:00
Vishal Rana
1049c9613c Updated docs
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-26 10:09:29 -07:00
Vishal Rana
4256489c0e Updated website
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-24 11:32:01 -07:00
Vishal Rana
8173bb8f2d Fixed website ui
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-20 15:50:07 -07:00
Vishal Rana
ac0a38d995 Fixed Context#RealIP() to fetch the first IP
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-20 12:05:09 -07:00
Stanley Zheng
a87261ecb2 correct typo in app engine article (#909) 2017-04-19 14:43:39 -07:00
eiji.ienaga
badd2efd56 Update guide.md (#908)
Signature changed for key and basic auth validator

5f392f3bb1
2017-04-19 07:58:49 -07:00
Vishal Rana
5f392f3bb1 Signature changed for key and basic auth validator
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-18 15:40:28 -07:00
Vishal Rana
c3069d42c1 Fixed #901
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-12 09:07:54 -07:00
Vishal Rana
9cd74c54c1 Merge branch 'ole108-master' 2017-04-10 13:10:39 -07:00
Vishal Rana
d5bff83dc3 Using *context instead of Context in Router#Find()
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-04-10 13:10:31 -07:00
Vishal Rana
b2b8ce08d1 Merge branch 'master' of https://github.com/ole108/echo into ole108-master 2017-04-10 11:00:14 -07:00