Commit Graph

32 Commits

Author SHA1 Message Date
adnano
10760a256f Use net/http implementation of ServeMux 2020-09-28 03:15:19 -04:00
adnano
11484b8215 Remove unused code 2020-09-28 02:17:56 -04:00
adnano
5edecf01a2 Update comments 2020-09-28 02:13:46 -04:00
adnano
b7e977f78a Don't trim trailing slash from Handler patterns 2020-09-28 02:06:15 -04:00
adnano
70c5d8b9ce Add WithInput helper functions 2020-09-28 02:05:37 -04:00
adnano
f09b859370 Add WithCertificate helper function 2020-09-28 01:10:36 -04:00
adnano
c3dbcb39db Clarify comment 2020-09-27 22:13:50 -04:00
adnano
554e0af32a Split Redirect into two functions 2020-09-27 22:06:08 -04:00
adnano
599c5bb131 Use helper functions throughout 2020-09-27 22:03:09 -04:00
adnano
707ebf1c0c Add SetMimetype convenience function 2020-09-27 21:53:58 -04:00
adnano
5a0f7cf631 Trim trailing slash from Handler patterns 2020-09-27 21:24:08 -04:00
adnano
3c9821d812 Add more helper functions 2020-09-27 21:13:42 -04:00
adnano
fdf6bbc62f Add helper functions 2020-09-27 20:52:24 -04:00
adnano
38fe1f21dc Change package name to gmi 2020-09-27 20:20:59 -04:00
adnano
a4a8d49ca7 Add helper handler functions 2020-09-27 20:11:45 -04:00
adnano
a1a2523c5c Reject requests containing '..' in them 2020-09-26 17:13:13 -04:00
adnano
92a1dbbc0c Implement file server 2020-09-26 16:38:26 -04:00
adnano
d604e8c337 Specify minimum version of TLS 1.2 2020-09-26 00:31:16 -04:00
adnano
1f3587ba9d Distinguish client errors from server errors 2020-09-25 23:23:24 -04:00
adnano
2f43c191cc Reorganize 2020-09-25 19:09:49 -04:00
adnano
fdb7c9819e Move server code to its own file 2020-09-25 19:06:56 -04:00
adnano
63696fc7c8 Refactor 2020-09-24 00:30:21 -04:00
adnano
758e056952 Handle more than one request at a time 2020-09-24 00:26:30 -04:00
adnano
6297d1e3ca Enforce valid URLs 2020-09-21 22:21:51 -04:00
adnano
86e7fe4355 Add package declaration comment 2020-09-21 22:09:50 -04:00
adnano
01294f6661 Refactor client requests and server responses 2020-09-21 21:31:09 -04:00
adnano
5a0a515874 Provide Handler with client remote address 2020-09-21 20:44:10 -04:00
adnano
39552c0f8f Provide Handler with client certificate information 2020-09-21 19:17:10 -04:00
adnano
cc06e65b41 Add support for client-side certificates 2020-09-21 18:21:42 -04:00
adnano
e6f70cf697 Update documentation 2020-09-21 17:36:09 -04:00
adnano
e20b8a0a5e Add examples 2020-09-21 17:23:51 -04:00
adnano
257b807675 Initial commit 2020-09-21 15:49:09 -04:00