1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-09-19 23:01:37 +02:00
Commit Graph

117 Commits

Author SHA1 Message Date
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
adnano
4b8049016c Update comments 2020-09-28 02:28:28 -04:00
adnano
094312d48b Use splitHostPort function from net/url 2020-09-28 02:27:29 -04:00
adnano
7fcfc5ee41 Remove unused code 2020-09-28 02:17:56 -04:00
adnano
b053a12ffa Update comments 2020-09-28 02:16:49 -04:00
adnano
8a3d6e3321 Update comments 2020-09-28 02:13:46 -04:00
adnano
3d8e9f3c44 Don't trim trailing slash from Handler patterns 2020-09-28 02:06:15 -04:00
adnano
b34294db1a Add WithInput helper functions 2020-09-28 02:05:37 -04:00
adnano
b0ec0fe937 Use WithCertificate helper in auth example 2020-09-28 01:14:29 -04:00
adnano
49f0063186 Add WithCertificate helper function 2020-09-28 01:10:36 -04:00
adnano
813a1b8957 Remove unused import 2020-09-28 00:42:19 -04:00
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
e19185a0b2 Update documentation 2020-09-28 00:29:11 -04:00
adnano
959e46d12a Remove log.Print call 2020-09-28 00:08:42 -04:00
adnano
60d3cfb1c1 Return certificate if it exists in the store 2020-09-28 00:03:42 -04:00
adnano
a8f1b8ab1f Only generate certificates after CertificateRequired 2020-09-27 23:58:45 -04:00
adnano
ddd5830dd2 Generate certificates on demand 2020-09-27 23:49:41 -04:00
adnano
f42c150416 Remove tilde from comment 2020-09-27 22:19:24 -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
1c89de359c Clarify comment 2020-09-27 22:13:50 -04:00
adnano
4197d51545 Split Redirect into two functions 2020-09-27 22:06:08 -04:00
adnano
148910dade Use helper functions throughout 2020-09-27 22:03:09 -04:00
adnano
c9d03a516d Add SetMimetype convenience function 2020-09-27 21:53:58 -04:00
adnano
c25a128d2e Fix README.md 2020-09-27 21:40:51 -04:00
adnano
304e543637 Check certificate notBefore and notAfter times 2020-09-27 21:37:10 -04:00
adnano
fe1ad28e20 Trim trailing slash from Handler patterns 2020-09-27 21:24:08 -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
e1a1685f0f Add helper functions 2020-09-27 20:52:24 -04:00
adnano
ac2bf90699 Rename NewProxyRequest to NewRequestTo 2020-09-27 20:37:16 -04:00
adnano
934155feb7 examples/client: Handle relative redirects 2020-09-27 20:34:59 -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
c548e8baa8 Reject invalid status codes 2020-09-27 19:56:33 -04:00
adnano
cafc19aed7 Polish example client 2020-09-27 19:45:48 -04:00