From 8d659d3589780ff454f0dad9fa61e112d11e3093 Mon Sep 17 00:00:00 2001 From: kataras Date: Tue, 21 Nov 2017 11:38:55 +0200 Subject: [PATCH] move csrf middleware example Former-commit-id: 5dbe3affead73a97b5313b9f7c00e88470aba24d --- _benchmarks/README_UNIX.md | 2 +- _examples/README.md | 22 +++++++++---------- .../csrf/main.go | 0 .../csrf/views/user/signup.html | 0 4 files changed, 12 insertions(+), 12 deletions(-) rename _examples/{miscellaneous => experimental-handlers}/csrf/main.go (100%) rename _examples/{miscellaneous => experimental-handlers}/csrf/views/user/signup.html (100%) diff --git a/_benchmarks/README_UNIX.md b/_benchmarks/README_UNIX.md index 2fad33a0..a7e87d2c 100644 --- a/_benchmarks/README_UNIX.md +++ b/_benchmarks/README_UNIX.md @@ -26,7 +26,7 @@ Go ahead to the [README.md](README.md) and read how you can reproduce the benchm ### Native | Name | Throughput | Reqs/sec | Latency | Time To Complete | Total Requests | -|-------|:-----------|:--------|:-------------|---------|------|------| +|-------|:-----------|:--------|:-------------|---------|------| | Iris | **29.31MB/s** | 157628 | 791.58us | 6s | 1000000 | | Kestrel | **25.28MB/s** | 139642 | 0.89ms | 7s | 1000000 | | Node.js | **13.69MB/s** | 50907 | 2.45ms | 19s | 1000000 | diff --git a/_examples/README.md b/_examples/README.md index 26027ad5..1f49a85d 100755 --- a/_examples/README.md +++ b/_examples/README.md @@ -308,20 +308,20 @@ You can serve [quicktemplate](https://github.com/valyala/quicktemplate) files to - [Recovery](miscellaneous/recover/main.go) - [Profiling (pprof)](miscellaneous/pprof/main.go) - [Internal Application File Logger](miscellaneous/file-logger/main.go) -- [Google reCAPTCHA](miscellaneous/recaptcha/main.go) -- [Cross-Site Request Forgery Protection](miscellaneous/csrf/main.go) +- [Google reCAPTCHA](miscellaneous/recaptcha/main.go) ### Experimental Handlers -* [Casbin wrapper](experimental-handlers/casbin/wrapper/main.go) -* [Casbin middleware](experimental-handlers/casbin/middleware/main.go) -* [Cloudwatch](experimental-handlers/cloudwatch/simple/main.go) -* [CORS](experimental-handlers/cors/simple/main.go) -* [JWT](experimental-handlers/jwt/main.go) -* [Newrelic](experimental-handlers/newrelic/simple/main.go) -* [Prometheus](experimental-handlers/prometheus/simple/main.go) -* [Secure](experimental-handlers/secure/simple/main.go) -* [Tollboothic](experimental-handlers/tollboothic/limit-handler/main.go) +- [Casbin wrapper](experimental-handlers/casbin/wrapper/main.go) +- [Casbin middleware](experimental-handlers/casbin/middleware/main.go) +- [Cloudwatch](experimental-handlers/cloudwatch/simple/main.go) +- [CORS](experimental-handlers/cors/simple/main.go) +- [JWT](experimental-handlers/jwt/main.go) +- [Newrelic](experimental-handlers/newrelic/simple/main.go) +- [Prometheus](experimental-handlers/prometheus/simple/main.go) +- [Secure](experimental-handlers/secure/simple/main.go) +- [Tollboothic](experimental-handlers/tollboothic/limit-handler/main.go) +- [Cross-Site Request Forgery Protection](experimental-handlers/csrf/main.go) #### More diff --git a/_examples/miscellaneous/csrf/main.go b/_examples/experimental-handlers/csrf/main.go similarity index 100% rename from _examples/miscellaneous/csrf/main.go rename to _examples/experimental-handlers/csrf/main.go diff --git a/_examples/miscellaneous/csrf/views/user/signup.html b/_examples/experimental-handlers/csrf/views/user/signup.html similarity index 100% rename from _examples/miscellaneous/csrf/views/user/signup.html rename to _examples/experimental-handlers/csrf/views/user/signup.html