1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 16:52:06 +01:00
Commit Graph

12 Commits

Author SHA1 Message Date
adnano
06d65b8154 Make ResponseWriter a struct
Make ResponseWriter a struct again so that it can be extended in a
backwards-compatible way.
2021-02-23 20:41:16 -05:00
adnano
feb0535483 handler: Mention when the context is canceled 2021-02-23 19:01:12 -05:00
adnano
f8c7820d0f handler: Mention ResponseWriter.Close method 2021-02-23 18:59:20 -05:00
adnano
6e16497812 Use HandlerFunc to implement StatusHandler 2021-02-23 18:52:00 -05:00
adnano
61eef35c92 server: Don't recover from panics 2021-02-21 11:04:45 -05:00
adnano
070c258c8d Use StatusHandler in NotFoundHandler implementation 2021-02-21 09:32:07 -05:00
adnano
e4b704c9b1 Rename RedirectHandler to StatusHandler 2021-02-20 16:44:42 -05:00
adnano
51e324303b Remove NotFound function 2021-02-20 16:42:18 -05:00
adnano
9318ba666b Make Status a type
Using a type is better than using an integer.
2021-02-20 16:16:32 -05:00
adnano
2c69b88153 handler: Make ServeGemini accept a Context 2021-02-20 15:49:14 -05:00
adnano
413ecf9913 Reverse order of RedirectHandler arguments 2021-02-17 19:53:00 -05:00
adnano
ae803cc7ec Add utility Handler functions 2021-02-17 19:27:25 -05:00