adnano
429dd79ae4
Add message argument to TimeoutHandler
2021-02-28 22:07:24 -05:00
adnano
3255b024e9
Remove ResponseWriter.Close method
2021-02-24 19:00:09 -05:00
adnano
249b13c191
ResponseWriter: Remove unexported method
2021-02-24 10:01:46 -05:00
adnano
b3a84facce
TimeoutHandler: Mention returned error
2021-02-24 08:37:52 -05:00
adnano
0ad54cc7ab
Add unexported method to timeout writer
2021-02-24 08:34:26 -05:00
adnano
6a0151c60b
Implement TimeoutHandler by wrapping ResponseWriter
2021-02-24 08:18:23 -05:00
adnano
36a67255e0
Make ResponseWriter an interface
...
Make ResponseWriter an interface with an unexported method. Implementors
must embed a ResponseWriter from elsewhere. This gives us the
flexibility of an interface while allowing us to add new methods in the
future.
2021-02-24 00:13:46 -05:00
adnano
06dc7eed08
Remove ErrHandlerTimeout
2021-02-23 22:15:19 -05:00
adnano
2d5b0df001
Move TimeoutHandler to handler.go
2021-02-23 22:12:04 -05:00
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