├── .github ├── CODEOWNERS ├── FUNDING.yml └── workflows │ └── ci.yml ├── .gitignore ├── .golangci.yml ├── LICENSE ├── README.md ├── basic_auth.go ├── basic_auth_test.go ├── benchmarks.go ├── benchmarks_test.go ├── blackwords.go ├── blackwords_test.go ├── cache_control.go ├── cache_control_test.go ├── depricattion.go ├── depricattion_test.go ├── file_server.go ├── file_server_test.go ├── go.mod ├── go.sum ├── gzip.go ├── gzip_test.go ├── httperrors.go ├── httperrors_test.go ├── logger ├── logger.go ├── logger_test.go └── options.go ├── metrics.go ├── metrics_test.go ├── middleware.go ├── middleware_test.go ├── nocache.go ├── nocache_test.go ├── onlyfrom.go ├── onlyfrom_test.go ├── profiler.go ├── realip ├── real.go └── real_test.go ├── rest.go ├── rest_test.go ├── rewrite.go ├── rewrite_test.go ├── sizelimit.go ├── sizelimit_test.go ├── testdata ├── index.html └── root │ ├── 1 │ ├── f1.html │ └── f2.html │ ├── 2 │ ├── f123.txt │ └── index.html │ ├── index.html │ └── xyz.js ├── throttle.go ├── throttle_test.go ├── trace.go └── trace_test.go /.github/CODEOWNERS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/.github/CODEOWNERS -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: [umputun] 2 | -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/.golangci.yml -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/README.md -------------------------------------------------------------------------------- /basic_auth.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/basic_auth.go -------------------------------------------------------------------------------- /basic_auth_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/basic_auth_test.go -------------------------------------------------------------------------------- /benchmarks.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/benchmarks.go -------------------------------------------------------------------------------- /benchmarks_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/benchmarks_test.go -------------------------------------------------------------------------------- /blackwords.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/blackwords.go -------------------------------------------------------------------------------- /blackwords_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/blackwords_test.go -------------------------------------------------------------------------------- /cache_control.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/cache_control.go -------------------------------------------------------------------------------- /cache_control_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/cache_control_test.go -------------------------------------------------------------------------------- /depricattion.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/depricattion.go -------------------------------------------------------------------------------- /depricattion_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/depricattion_test.go -------------------------------------------------------------------------------- /file_server.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/file_server.go -------------------------------------------------------------------------------- /file_server_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/file_server_test.go -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/go.sum -------------------------------------------------------------------------------- /gzip.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/gzip.go -------------------------------------------------------------------------------- /gzip_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/gzip_test.go -------------------------------------------------------------------------------- /httperrors.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/httperrors.go -------------------------------------------------------------------------------- /httperrors_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/httperrors_test.go -------------------------------------------------------------------------------- /logger/logger.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/logger/logger.go -------------------------------------------------------------------------------- /logger/logger_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/logger/logger_test.go -------------------------------------------------------------------------------- /logger/options.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/logger/options.go -------------------------------------------------------------------------------- /metrics.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/metrics.go -------------------------------------------------------------------------------- /metrics_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/metrics_test.go -------------------------------------------------------------------------------- /middleware.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/middleware.go -------------------------------------------------------------------------------- /middleware_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/middleware_test.go -------------------------------------------------------------------------------- /nocache.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/nocache.go -------------------------------------------------------------------------------- /nocache_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/nocache_test.go -------------------------------------------------------------------------------- /onlyfrom.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/onlyfrom.go -------------------------------------------------------------------------------- /onlyfrom_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/onlyfrom_test.go -------------------------------------------------------------------------------- /profiler.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/profiler.go -------------------------------------------------------------------------------- /realip/real.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/realip/real.go -------------------------------------------------------------------------------- /realip/real_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/realip/real_test.go -------------------------------------------------------------------------------- /rest.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/rest.go -------------------------------------------------------------------------------- /rest_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/rest_test.go -------------------------------------------------------------------------------- /rewrite.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/rewrite.go -------------------------------------------------------------------------------- /rewrite_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/rewrite_test.go -------------------------------------------------------------------------------- /sizelimit.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/sizelimit.go -------------------------------------------------------------------------------- /sizelimit_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/sizelimit_test.go -------------------------------------------------------------------------------- /testdata/index.html: -------------------------------------------------------------------------------- 1 | illegal! -------------------------------------------------------------------------------- /testdata/root/1/f1.html: -------------------------------------------------------------------------------- 1 | testdata/1/f1.html -------------------------------------------------------------------------------- /testdata/root/1/f2.html: -------------------------------------------------------------------------------- 1 | testdata/1/f2.html -------------------------------------------------------------------------------- /testdata/root/2/f123.txt: -------------------------------------------------------------------------------- 1 | testdata/2/f123.txt -------------------------------------------------------------------------------- /testdata/root/2/index.html: -------------------------------------------------------------------------------- 1 | testdata/2/index.html -------------------------------------------------------------------------------- /testdata/root/index.html: -------------------------------------------------------------------------------- 1 | testdata/index.html -------------------------------------------------------------------------------- /testdata/root/xyz.js: -------------------------------------------------------------------------------- 1 | testdata/xyz.js -------------------------------------------------------------------------------- /throttle.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/throttle.go -------------------------------------------------------------------------------- /throttle_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/throttle_test.go -------------------------------------------------------------------------------- /trace.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/trace.go -------------------------------------------------------------------------------- /trace_test.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/go-pkgz/rest/HEAD/trace_test.go --------------------------------------------------------------------------------