Commit Graph

33 Commits

Author SHA1 Message Date
Erik Dubbelboer c3050516d9 Fix lint and security issues
gosec was failing after the last update introduced some new checks.
2024-09-07 15:22:05 +02:00
Juan Calderon-Perez 1fb3453165 Use Named Fields and Align Structures to Reduce Memory Usage (#1814)
* Use Named fields and Align Structures to Reduce Memory Usage

* Remove extra spaces
2024-08-02 22:26:52 +02:00
Oleksandr Redko 1dcf56222d test: refactor to use WriteString (#1546) 2023-04-28 17:39:58 +02:00
Oleksandr Redko d2f0d17242 examples/client: fix error (#1545) 2023-04-28 17:06:45 +02:00
Nikolay Vedernikov cdea4fe88e Refactor client's example code (#1539)
* Refactor client's example code

* Update examples/client/client.go

Remove closure

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>

---------

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
2023-04-18 07:52:18 +02:00
Oleksandr Redko 5147cecec7 docs: replace links to golang.org with go.dev (#1489)
- Replace https://godoc.org with https://pkg.go.dev.
- Replace https://golang.org with https://go.dev.
- Replace https://golang.org/pkg with https://pkg.go.dev.
- Replace https://blog.golang.org with https://go.dev/blog.
- Use https://pkg.go.dev/golang.org/x/net/http2  instead of non-existing https://http2.golang.org/.
- Remove trailing slashes.
2023-02-11 19:59:44 +08:00
Oleksandr Redko c0c5f9cd38 doc,test: correct typos (#1484) 2023-02-09 09:29:28 +01:00
Erik Dubbelboer 7a5afddf5b Use %v for errors and %q for strings (#1262)
Mostly in tests.
2022-04-01 18:11:16 +02:00
Sergey Ponomarev 632e222c2a Client examples (#1208)
* examples/host_client

* examples/client

* examples/client/client.go refine imports

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>

* examples/host_client/hostclient.go refine imports

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>

Co-authored-by: Erik Dubbelboer <erik@dubbelboer.com>
2022-02-09 11:09:36 +01:00
Erik Dubbelboer fbe6a2d470 Add fasthttp.GenerateTestCertificate and use in tests
Remove ssl-cert-snakeoil so our tests don't fail in 2025.
2021-02-06 11:47:11 +01:00
Erik Dubbelboer 607743cb8e Ignore gosec warning in example 2020-07-12 18:25:46 +02:00
Erik Dubbelboer f97a382d80 Add letsencrypt example 2020-07-11 20:40:19 +02:00
Andy Pan 59b28fe0e5 Resolve code issues from goreportcard.com (#725) 2020-01-12 12:57:42 +01:00
Erik Dubbelboer 2cc8e6be6d go fmt ./... 2018-08-29 20:26:12 +08:00
Erik Dubbelboer 5b46f8ddc5 Added support for multiple TLS domains
See: https://github.com/erikdubbelboer/fasthttp/pull/24
2018-08-25 20:11:58 +03:00
Aliaksandr Valialkin 338fe46307 typo fix after f340a2920f 2016-02-05 18:14:23 +02:00
Aliaksandr Valialkin f340a2920f Moved expvarhandler from fasthttputil to fasthttp root 2016-02-05 18:13:16 +02:00
Aliaksandr Valialkin 5dcb652364 Moved ExpvarHandler to a dedicated package in order to break import cycle 2016-02-05 18:06:54 +02:00
Aliaksandr Valialkin 700a838f12 Added expvar stats to example fileserver 2016-02-05 17:40:44 +02:00
Aliaksandr Valialkin e0cd149b5e Enabled virtual hosting support in example fileserver 2016-02-04 17:16:43 +02:00
Aliaksandr Valialkin 86f4530069 Added pretty logging to fileserver example 2016-01-08 15:40:26 +02:00
Aliaksandr Valialkin 4326e27e9a Added TLS support to example fileserver 2016-01-08 15:23:09 +02:00
Aliaksandr Valialkin 2633e1c90d Mention that example fileserver support byte range responses 2016-01-05 15:30:34 +02:00
Aliaksandr Valialkin da62899f14 Removed obsolete startPos verification 2016-01-05 14:22:17 +02:00
Aliaksandr Valialkin 5031bb90a5 Updated readme for fileserver example 2015-12-30 15:25:20 +02:00
Aliaksandr Valialkin 842cd856a4 Added transparent compression support to helloworldserver example 2015-12-30 14:50:58 +02:00
Aliaksandr Valialkin 9b8a7de66b Added transparent compression option to FS 2015-12-29 11:51:11 +02:00
Aliaksandr Valialkin 6db1946298 Use ctx.UserAgent() shortcut instead of ctx.Request.Header.UserAgent() 2015-12-10 13:17:21 +02:00
Aliaksandr Valialkin 37c8e563a1 Ignore built binaries from examples 2015-12-09 14:13:23 +02:00
Aliaksandr Valialkin 59316df4e0 Added HelloWorld server example 2015-12-08 12:18:54 +02:00
Aliaksandr Valialkin bb1df8cf70 Get updated fasthttp when building fileserver with make 2015-12-06 19:52:44 +02:00
Aliaksandr Valialkin 9e531e8b5c Added fileserver vs nginx performance comparison 2015-12-04 16:40:24 +02:00
Aliaksandr Valialkin e80eda19e9 Issue #10: Added initial examples 2015-12-04 15:09:12 +02:00