1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-20 03:11:34 +02:00
Commit Graph

184 Commits

Author SHA1 Message Date
adnano
ecefa0b9d6 Update documentation 2020-10-28 16:02:04 -04:00
adnano
ddd6215dcc Use strings.Builder in Fingerprint 2020-10-28 15:14:24 -04:00
adnano
7df14145d0 Refactor server certificates 2020-10-28 15:03:54 -04:00
adnano
6fb76f04e7 Fix examples/cert.go 2020-10-28 13:47:52 -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
b25fdec389 Store a reference to the Request in Response 2020-10-28 00:21:27 -04:00
adnano
80e2f783c3 Ensure absolute paths in client certificate store 2020-10-27 23:47:13 -04:00
adnano
748967867f Add Client.GetInput field 2020-10-27 23:35:22 -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
ab3ac68f6f Make (*Response).Body an io.ReadCloser 2020-10-27 19:16:55 -04:00
adnano
37fd7c1773 Fix examples 2020-10-27 14:17:14 -04:00
adnano
7e215669e7 Add ServeFile function 2020-10-27 13:32:48 -04:00
adnano
4beed7e90e Add (*ResponseWriter).WriteStatus function 2020-10-27 13:30:35 -04:00
adnano
1293b2467a Add NewRequestFromURL function 2020-10-27 13:27:52 -04:00
adnano
b7d4926314 Remove (Text).HTML function 2020-10-26 12:49:16 -04:00
adnano
150d5cc82a Add contributing instructions to README.md 2020-10-24 21:55:58 -04:00
adnano
5acff7c45c Add import path to README.md 2020-10-24 16:58:35 -04:00
adnano
de46c241b0 Update documentation 2020-10-24 15:29:12 -04:00
adnano
a08c8227dd Update documentation link 2020-10-24 15:21:35 -04:00
adnano
6cccba3800 Rename repository to go-gemini 2020-10-24 15:15:32 -04:00
adnano
80bada969f Add Certificate helper function 2020-10-21 17:47:34 -04:00
adnano
564294165b examples/auth: Use sensitive input for passwords 2020-10-21 17:38:58 -04:00
adnano
f7e384c88f Refactor Input and SensitiveInput functions 2020-10-21 17:34:07 -04:00
adnano
dda63807b5 Refactor 2020-10-21 17:07:28 -04:00
adnano
40255d8c40 Rename Handler to Responder 2020-10-21 16:28:50 -04:00
adnano
31aefb0dcb Update documentation 2020-10-21 16:04:19 -04:00
adnano
efdf45421f Update documentation 2020-10-21 15:57:04 -04:00
adnano
ba4fcc4ef6 Assume a default scheme of gemini:// 2020-10-21 15:47:32 -04:00
adnano
3e4db7570b Add support for wildcard hostnames 2020-10-21 13:22:26 -04:00
adnano
52264937f1 examples/server: Create certificates if they does not exist 2020-10-17 11:57:11 -04:00
adnano
0721c60b28 Add (Text).HTML function to render text to HTML 2020-10-15 00:38:05 -04:00
adnano
8a26266e48 Rename rw to w 2020-10-13 21:00:07 -04:00
adnano
3a84770934 Add copyright notice 2020-10-13 20:36:47 -04:00
adnano
e94ae4ad4c Prevent other packages from implementing Line 2020-10-13 20:33:38 -04:00
adnano
d799fdc7a3 Update project name in LICENSE 2020-10-13 20:27:56 -04:00
adnano
5fd0817588 Fix typo 2020-10-13 20:24:06 -04:00
adnano
e09d6659b4 Rename rw, req to w, r 2020-10-13 20:22:12 -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
c8780c34cd KnownHosts: use map instead of slice for underlying storage 2020-10-13 19:54:48 -04:00
adnano
fe80359f4e Update comment 2020-10-13 19:11:59 -04:00
adnano
67b81008fd Remove NewRawCertificate function 2020-10-13 17:33:14 -04:00
adnano
d71474e8a6 Remove WriteX509KeyPair function 2020-10-13 16:50:59 -04:00
adnano
76f3ec0dcf Move certificate verification code to VerifyConnection 2020-10-13 16:44:46 -04:00
adnano
1627930aa7 examples/server: Generate new certificates when they expire 2020-10-13 14:22:15 -04:00
adnano
9648322046 Remove (*Request).Hostname function 2020-10-13 13:31:50 -04:00