1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2025-08-23 20:34:40 +02:00
Commit Graph

70 Commits

Author SHA1 Message Date
adnano
f227ae7a98 Tweak request and response parsing 2021-03-20 12:27:20 -04:00
adnano
b6bd537548 client: Ignore certificate expiration time 2021-03-04 14:35:51 -05:00
adnano
230222dbcc Add missing import 2021-02-24 14:28:47 -05:00
adnano
ce15fc6d4a Move mimetype registration to gemini.go 2021-02-24 14:27:49 -05:00
adnano
2286e04070 Remove ResponseWriter.Hijack method 2021-02-24 08:22:12 -05:00
adnano
90c7bb1b32 Remove ErrHandlerTimeout 2021-02-23 22:15:19 -05:00
adnano
4b67000c94 Add ResponseWriter.Hijack method 2021-02-23 21:36:29 -05:00
adnano
89e4a5809e server: Revert to closing contexts on Shutdown 2021-02-22 21:13:44 -05:00
adnano
9266af5090 server: Don't recover from panics 2021-02-21 11:04:45 -05:00
adnano
a79777532a Add ErrCertificateExpired 2021-02-21 09:27:12 -05:00
adnano
4b4077f300 Remove unused ErrInvalidURL 2021-02-21 09:23:30 -05:00
adnano
e3790045e6 Implement TimeoutHandler 2021-02-20 00:49:21 -05:00
adnano
4392a16009 server: Recover from ServeGemini panics 2021-02-15 00:36:33 -05:00
adnano
ecc0a8e32a server: Implement Close and Shutdown methods 2021-02-14 23:58:33 -05:00
adnano
cf95b95615 Move documentation back to doc.go 2021-01-10 01:16:50 -05:00
adnano
6d794fa24c Add ReadRequest and ReadResponse functions 2020-12-18 01:42:05 -05:00
adnano
8393db600b Move documentation to gemini.go 2020-11-09 12:07:49 -05:00
adnano
dd894c7462 Remove top-level Get and Do functions 2020-11-09 12:04:53 -05:00
adnano
ea560b3030 Refactor KnownHosts 2020-11-05 15:27:12 -05:00
adnano
5181e6bbf1 Remove some unnecessary errors 2020-11-04 23:46:05 -05:00
adnano
95d2fcbc04 Don't expose DefaultClient 2020-11-01 14:27:49 -05:00
adnano
9a6cb61b8f Add option to skip trust checks 2020-10-31 22:45:21 -04:00
adnano
b23a17d94e Refactor client.TrustCertificate workflow 2020-10-31 22:34:51 -04:00
adnano
99f7d89817 Add ErrCertificateNotFound 2020-10-31 16:45:38 -04:00
adnano
cb039e951f Refactor client certificates 2020-10-28 13:41:24 -04:00
adnano
a0b6da3414 Add ErrInputRequired and ErrCertificateRequired 2020-10-28 01:06:08 -04:00
adnano
1443fa1046 Restrict client certificates to certain paths 2020-10-27 23:34:06 -04:00
adnano
f6529e1a17 client: Follow redirects 2020-10-27 22:12:10 -04:00
adnano
befb9367ac Reject schemes other than gemini:// in NewRequest 2020-10-27 21:18:05 -04:00
adnano
f3af6ba83d Add (*Client).Get function 2020-10-27 19:22:34 -04:00
adnano
381c181a11 Add (*ResponseWriter).WriteStatus function 2020-10-27 13:30:35 -04:00
adnano
02dd955c4e Rename repository to go-gemini 2020-10-24 15:15:32 -04:00
adnano
67842c6425 Rename gemini.go to gmi.go 2020-10-13 20:10:18 -04:00
adnano
4189a4f717 Move errors to gemini.go 2020-10-13 20:10:04 -04:00
adnano
4770ad9112 Rename (*KnownHosts).Load to LoadDefault 2020-10-12 16:56:55 -04:00
adnano
a33a5be063 Update documentation 2020-10-12 16:34:59 -04:00
adnano
065ed828fb Implement server certificate store 2020-10-11 23:48:18 -04:00
adnano
fbc1f76194 Create the certificate store if it does not exist 2020-09-29 11:13:16 -04:00
adnano
956a2bad52 Remove NewCertificateStore function 2020-09-28 00:41:00 -04:00
adnano
cad2d25185 Make the default client generate certificates 2020-09-28 00:38:11 -04:00
adnano
365e94f06e Directly initialize DefaultClient 2020-09-27 22:18:21 -04:00
adnano
7ccf75ad43 Move DefaultClient up 2020-09-27 22:15:36 -04:00
adnano
3428a006ba Move package documentation comment 2020-09-27 21:19:34 -04:00
adnano
3c9821d812 Add more helper functions 2020-09-27 21:13:42 -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
73a1692a5b Make TrustCertificate accept hostname instead of request 2020-09-27 16:10:36 -04:00
adnano
e01d59f8f6 Don't store wildcards in the known hosts file 2020-09-27 15:03:46 -04:00
adnano
013b2a4d3e Add function to write known hosts to io.Writer 2020-09-27 14:18:30 -04:00
adnano
ceb40a2fab Implement default client 2020-09-26 16:52:14 -04:00