1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-23 16:52:06 +01:00
Commit Graph

32 Commits

Author SHA1 Message Date
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
adnano
678bba3417 Sort ServeMux entries by length 2020-09-25 11:00:18 -04:00
adnano
74a18d3f34 Update README.md 2020-09-25 10:09:41 -04:00
adnano
741e234d8d Update comments 2020-09-24 19:41:50 -04:00
adnano
00315aaf2f Convert ResponseWriter to struct 2020-09-24 19:38:26 -04:00
adnano
685abaf2c7 Use more buffered I/O 2020-09-24 19:22:35 -04:00
adnano
de7a7724cb Use buffered IO 2020-09-24 19:02:03 -04:00
adnano
c4e7e8c892 Remove Client struct
Gemini requests are very simple and leave little room for customization,
so a configurable Client is not necessary.
2020-09-24 01:55:41 -04:00
adnano
efb3871d4d Provide Response with ConnectionState 2020-09-24 01:45:26 -04:00
adnano
11748c220a Fix client example 2020-09-24 01:43:03 -04:00
adnano
c3255b1d53 Merge Request and RequestInfo 2020-09-24 01:37:57 -04:00
adnano
fe4c98606f Refactor 2020-09-24 00:30:21 -04:00
adnano
d16253666e Enforce valid URLs 2020-09-21 22:21:51 -04:00
adnano
b81f6d44d4 Add package declaration comment 2020-09-21 22:09:50 -04:00