1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-12-04 17:58:14 +01:00
Commit Graph

253 Commits

Author SHA1 Message Date
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
adnano
a0c7ce836f Rename (*KnownHosts).Load to LoadDefault 2020-10-12 16:56:55 -04:00
adnano
1d525b4a89 Update documentation 2020-10-12 16:51:10 -04:00
adnano
3c8588bb47 Update documentation 2020-10-12 16:49:35 -04:00
adnano
e8c4512bcc Update README.md 2020-10-12 16:39:01 -04:00
adnano
7eaa0f3bce Update documentation 2020-10-12 16:34:59 -04:00
adnano
1d15fb5d9c Use a map for registering server handlers 2020-10-12 16:34:12 -04:00
adnano
98b3169a86 Update examples 2020-10-12 00:13:24 -04:00
adnano
63232c7eb8 Implement loading of certificates from a directory 2020-10-12 00:06:20 -04:00
adnano
8de7f5d8c4 Implement server certificate store 2020-10-11 23:48:18 -04:00
adnano
cdf49622e2 Remove dependency on golang.org/x/crypto 2020-10-11 21:55:30 -04:00
adnano
38e6f42295 Detect mimetypes 2020-10-11 20:13:53 -04:00
adnano
1c65b94f52 Update comments 2020-10-11 19:41:44 -04:00
adnano
037a707863 Move filesystem code to its own file 2020-10-11 18:57:04 -04:00
adnano
80828c126c Implement matching of hostnames and schemes 2020-10-11 17:53:22 -04:00
adnano
79c379c2d4 Update README.md 2020-10-11 15:23:41 -04:00
adnano
685ed38703 Fix parsing of links without names 2020-09-29 21:27:16 -04:00
adnano
1d19050f20 Create the certificate store if it does not exist 2020-09-29 11:13:16 -04:00
adnano
603704568c Add newlines after Gemini text lines 2020-09-29 10:16:55 -04:00
adnano
38387f3d62 Implement parsing of Gemini text responses 2020-09-29 10:13:57 -04:00
adnano
9c85725f3f Use path instead of filepath 2020-09-28 19:54:08 -04:00
adnano
41b0314053 Update README.md 2020-09-28 18:28:52 -04:00
adnano
980bb0e8aa Update documentation link 2020-09-28 18:22:18 -04:00
adnano
0f890caece Update module name 2020-09-28 18:19:59 -04:00
adnano
004d76265e examples/client: Add optional host argument 2020-09-28 16:13:14 -04:00
adnano
77486c2d8a Refuse requests for non-gemini schemes 2020-09-28 16:07:51 -04:00
adnano
0f358ece8d Remove support for matching schemes 2020-09-28 16:02:32 -04:00
adnano
140c8c6b9d Fix mux URL sorting logic 2020-09-28 15:33:15 -04:00
adnano
beef4fb0dc Fix client example error handling 2020-09-28 14:26:09 -04:00
adnano
88b358bb9d examples/client: Disable echo for sensitive input 2020-09-28 14:20:19 -04:00
adnano
65736ae718 Use net/http implementation of ServeMux 2020-09-28 03:15:19 -04:00
adnano
f051b33107 Move vendored code to vendor.go 2020-09-28 02:29:32 -04:00