1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-19 18:53:43 +02:00
Commit Graph

63 Commits

Author SHA1 Message Date
adnano
941a2e719a server: Revert to closing contexts on Shutdown 2021-02-22 21:13:44 -05:00
adnano
61eef35c92 server: Don't recover from panics 2021-02-21 11:04:45 -05:00
adnano
14a977907b Add ErrCertificateExpired 2021-02-21 09:27:12 -05:00
adnano
98ea5a52b8 Remove unused ErrInvalidURL 2021-02-21 09:23:30 -05:00
adnano
436c844007 Implement TimeoutHandler 2021-02-20 00:49:21 -05:00
adnano
b3fc301c13 server: Recover from ServeGemini panics 2021-02-15 00:36:33 -05:00
adnano
f8fcb11613 server: Implement Close and Shutdown methods 2021-02-14 23:58:33 -05:00
adnano
381316b1e7 Move documentation back to doc.go 2021-01-10 01:16:50 -05:00
adnano
cc962586d4 Add ReadRequest and ReadResponse functions 2020-12-18 01:42:05 -05:00
adnano
75809e04cc Move documentation to gemini.go 2020-11-09 12:07:49 -05:00
adnano
c8516bef63 Remove top-level Get and Do functions 2020-11-09 12:04:53 -05:00
adnano
6963164a96 Refactor KnownHosts 2020-11-05 15:27:12 -05:00
adnano
1fb24b625f Remove some unnecessary errors 2020-11-04 23:46:05 -05:00
adnano
e35e94bc82 Don't expose DefaultClient 2020-11-01 14:27:49 -05:00
adnano
d36225b337 Add option to skip trust checks 2020-10-31 22:45:21 -04:00
adnano
1c54599498 Refactor client.TrustCertificate workflow 2020-10-31 22:34:51 -04:00
adnano
b2fccc9db5 Add ErrCertificateNotFound 2020-10-31 16:45:38 -04:00
adnano
a3266487af Refactor client certificates 2020-10-28 13:41:24 -04:00
adnano
05404e1df7 Add ErrInputRequired and ErrCertificateRequired 2020-10-28 01:06:08 -04:00
adnano
546e62f13d Restrict client certificates to certain paths 2020-10-27 23:34:06 -04:00
adnano
922423bf9d client: Follow redirects 2020-10-27 22:12:10 -04:00
adnano
75506c176c Reject schemes other than gemini:// in NewRequest 2020-10-27 21:18:05 -04:00
adnano
d713e95251 Add (*Client).Get function 2020-10-27 19:22:34 -04:00
adnano
4beed7e90e Add (*ResponseWriter).WriteStatus function 2020-10-27 13:30:35 -04:00
adnano
6cccba3800 Rename repository to go-gemini 2020-10-24 15:15:32 -04:00
adnano
5dbdd5cb8a Rename gemini.go to gmi.go 2020-10-13 20:10:18 -04:00
adnano
bf8f183cab Move errors to gemini.go 2020-10-13 20:10:04 -04:00
adnano
a0c7ce836f Rename (*KnownHosts).Load to LoadDefault 2020-10-12 16:56:55 -04:00
adnano
7eaa0f3bce Update documentation 2020-10-12 16:34:59 -04:00
adnano
8de7f5d8c4 Implement server certificate store 2020-10-11 23:48:18 -04:00
adnano
1d19050f20 Create the certificate store if it does not exist 2020-09-29 11:13:16 -04:00
adnano
5758040909 Remove NewCertificateStore function 2020-09-28 00:41:00 -04:00
adnano
3498f81339 Make the default client generate certificates 2020-09-28 00:38:11 -04:00
adnano
828497fdc5 Directly initialize DefaultClient 2020-09-27 22:18:21 -04:00
adnano
4f77325c7f Move DefaultClient up 2020-09-27 22:15:36 -04:00
adnano
a645b03db4 Move package documentation comment 2020-09-27 21:19:34 -04:00
adnano
f1e8b251fe Add more helper functions 2020-09-27 21:13:42 -04:00
adnano
14e569bf92 Change package name to gmi 2020-09-27 20:20:59 -04:00
adnano
8d483b084f Add helper handler functions 2020-09-27 20:11:45 -04:00
adnano
4e16af9b26 Make TrustCertificate accept hostname instead of request 2020-09-27 16:10:36 -04:00
adnano
f19d3b09cd Don't store wildcards in the known hosts file 2020-09-27 15:03:46 -04:00
adnano
d7717577ea Add function to write known hosts to io.Writer 2020-09-27 14:18:30 -04:00
adnano
54e76fab3f Implement default client 2020-09-26 16:52:14 -04:00
adnano
578746550e Refactor TOFU 2020-09-25 23:18:14 -04:00
adnano
134d0277f5 Implement basic TOFU 2020-09-25 21:43:13 -04:00
adnano
d84cbcaf49 Reorganize 2020-09-25 19:09:49 -04:00
adnano
10139736e6 Rename gemini.go to client.go 2020-09-25 19:07:40 -04:00
adnano
458c42b516 Move server code to its own file 2020-09-25 19:06:56 -04:00
adnano
4c8a12e2fb Remove TLSConfig fields 2020-09-25 18:53:20 -04:00
adnano
e4ee382282 Add test 2020-09-25 11:27:26 -04:00