Adnan Maolood
b5c47a5ef0
mux: Add more tests
2021-06-26 20:16:38 -04:00
Adnan Maolood
fb0d4d24bd
mux: Remove support for handling schemes
...
Also fix redirection to subtree roots for wildcard patterns and patterns
without a host name.
2021-06-26 18:50:09 -04:00
Adnan Maolood
1fdef9b608
Rename ServeMux to Mux
2021-03-15 15:44:35 -04:00
Adnan Maolood
3660698a4b
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
Adnan Maolood
a65c3c3d4f
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
Adnan Maolood
e9a68917c9
handler: Make ServeGemini accept a Context
2021-02-20 15:49:14 -05:00
Adnan Maolood
f3cd70612b
mux: Implement matching of schemes and hostnames
2021-02-17 20:09:42 -05:00