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

274 Commits

Author SHA1 Message Date
adnano
b5cc06ad60 Add ResponseWriter.Flush function 2020-12-18 13:15:34 -05:00
adnano
896573601c Add examples/stream.go 2020-12-18 12:31:37 -05:00
adnano
8dde9b9cc9 Make NewResponseWriter take an io.Writer 2020-12-18 01:47:29 -05:00
adnano
c35dc332d3 Update Request documentation 2020-12-18 01:43:18 -05:00
adnano
cc962586d4 Add ReadRequest and ReadResponse functions 2020-12-18 01:42:05 -05:00
adnano
b9a9b65d0b Expose Request.Write and Response.Read functions 2020-12-18 01:14:06 -05:00
adnano
956c4bb5e4 server: Don't always assume TLS is used 2020-12-18 01:02:04 -05:00
adnano
e6f6366708 examples: Add missing descriptions 2020-12-18 00:47:30 -05:00
adnano
f2d93867c4 examples/html: Read from stdin and write to stdout 2020-12-18 00:45:09 -05:00
adnano
bbd8837651 Remove unnecessary variable 2020-12-18 00:35:08 -05:00
adnano
316a9f40ee Update QueryEscape documentation 2020-12-18 00:26:47 -05:00
adnano
70fbdb0e5c Remove Input function 2020-12-18 00:25:06 -05:00
adnano
2efc7a601b Remove Response.Request field 2020-12-18 00:19:53 -05:00
adnano
46e37ca9d6 client: Remove GetInput and CheckRedirect callbacks 2020-12-18 00:12:32 -05:00
adnano
6a0c970814 Update switch statement 2020-12-17 23:03:33 -05:00
adnano
11797c1adc client: Remove GetCertificate callback 2020-12-17 22:56:48 -05:00
adnano
c20ab2054a examples/auth: Fix crash on changing username 2020-12-17 21:10:53 -05:00
adnano
2bbc603627 Update GetCertificate documentation 2020-12-17 19:54:46 -05:00
adnano
aafbf9e590 Decouple Client from KnownHostsFile 2020-12-17 19:50:26 -05:00
adnano
70bb9c4e59 Allow Request.Context to be nil 2020-12-17 17:16:55 -05:00
adnano
d85abb61db Fix locking up of KnownHostsFile and CertificateDir 2020-12-17 17:15:24 -05:00
adnano
2d4989c002 Use RWMutex instead of Mutex 2020-12-17 17:08:45 -05:00
adnano
29d420ffc9 Add missing imports 2020-12-17 17:07:00 -05:00
adnano
c62ed9f00e Make CertificateDir safe for concurrent use by multiple goroutines 2020-12-17 16:52:08 -05:00
adnano
336ce6f414 Make KnownHostsFile safe for concurrent use 2020-12-17 16:49:59 -05:00
adnano
74ed3090cb client: Add GetCertificate callback 2020-12-17 16:46:16 -05:00
adnano
e0aa2740cb Revert to using hexadecimal to encode fingerprints 2020-12-16 23:58:02 -05:00
adnano
d37431fd29 Fix escaping of queries 2020-11-27 22:27:52 -05:00
adnano
7c7bfa954a examples/server: Increase certificate duration 2020-11-27 17:54:26 -05:00
adnano
19c6d8ef28 Fix server name in TLS connections 2020-11-27 17:45:15 -05:00
adnano
611af9f6ed Add context to requests 2020-11-26 00:42:25 -05:00
adnano
e9907b0628 Update examples/auth.go 2020-11-25 19:10:01 -05:00
adnano
2a7b9662d9 Fix known hosts expiration timestamps 2020-11-25 14:24:49 -05:00
adnano
57a3279d96 Fix certificate fingerprint check 2020-11-25 14:20:31 -05:00
adnano
048edc7db1 Use base64 to encode fingerprints 2020-11-25 14:16:51 -05:00
adnano
c1908868a9 Fix client locking up on redirects 2020-11-24 21:49:24 -05:00
adnano
f73de25fed Escape path character in certificate scopes 2020-11-24 20:24:38 -05:00
adnano
be4b6dab1e Don't assume a default scheme of gemini 2020-11-24 17:13:52 -05:00
adnano
2ab2d119e8 Make Client safe for concurrent use 2020-11-24 16:28:58 -05:00
adnano
45e9d3b99e Expose KnownHosts and CertificateStore internals 2020-11-23 12:17:54 -05:00
adnano
833716e51c Update KnownHosts documentation 2020-11-09 13:57:30 -05:00
adnano
59236875fd Add (*CertificateStore).Write function 2020-11-09 13:54:15 -05:00
adnano
082175ea16 Rename (*ResponseWriter).SetMimetype to SetMediaType 2020-11-09 13:44:42 -05:00
adnano
0a574baa5c Add (*KnownHosts).SetOutput function 2020-11-09 12:26:08 -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
50dcdabe8f Remove (*KnownHosts).LoadDefault function 2020-11-09 09:28:44 -05:00
adnano
676fc4994c Don't guarantee that (*Response).Body is always non-nil 2020-11-08 18:38:08 -05:00
adnano
ee691dbba5 Fix relative redirects 2020-11-07 23:43:07 -05:00
adnano
b244439328 Allow redirects to non-gemini schemes 2020-11-06 11:18:58 -05:00