adnano
|
6423382749
|
fs: Show listing for directories without index files
|
2021-02-17 00:08:14 -05:00 |
|
adnano
|
5b8b7b436e
|
fs: Remove leading slash before opening files
|
2021-02-16 23:18:37 -05:00 |
|
adnano
|
1d4f1baac4
|
Replace uses of ioutil with io
|
2021-02-16 18:57:24 -05:00 |
|
adnano
|
55aa05307f
|
fs: Replace FileSystem with io/fs.FS
|
2021-02-16 18:53:56 -05:00 |
|
adnano
|
b8a282be04
|
Require Go 1.16
|
2021-02-16 18:50:42 -05:00 |
|
adnano
|
9c13a3ba79
|
client: Don't try to verify unicode hostname
|
2021-02-16 11:27:53 -05:00 |
|
adnano
|
c9e139c90d
|
Update examples/auth.go
|
2021-02-16 11:26:09 -05:00 |
|
adnano
|
087c8a62e7
|
request: Allow User in URLs
|
2021-02-16 00:55:56 -05:00 |
|
adnano
|
1c32f4d5aa
|
Add build status badge to README.md
|
2021-02-16 00:07:01 -05:00 |
|
adnano
|
0282c1971c
|
Add build manifest
|
2021-02-16 00:05:10 -05:00 |
|
adnano
|
c61ce13edb
|
server: Prevent adding Listeners after Close
Check done after calling trackListener to prevent the listener from
being registered after the server is closed.
|
2021-02-15 20:19:44 -05:00 |
|
adnano
|
352b95587f
|
server: Avoid creating a new Listener after Close
|
2021-02-15 20:16:32 -05:00 |
|
adnano
|
a90a6240e7
|
server: Use separate mutex for handlers
|
2021-02-15 20:05:47 -05:00 |
|
adnano
|
7d03e3c9f4
|
Add some tests
|
2021-02-15 19:20:37 -05:00 |
|
adnano
|
a852aa8ac8
|
Return ErrInvalidResponse on error reading status
Return ErrInvalidResponse when unable to read the response status code
instead of returning the error from strconv.
|
2021-02-15 19:18:23 -05:00 |
|
adnano
|
317faffdeb
|
Remove NewRequestFromURL method
Use a Request struct literal instead.
|
2021-02-15 17:23:56 -05:00 |
|
adnano
|
cbb2ef363a
|
server: Rename responder to handler
|
2021-02-15 01:15:23 -05:00 |
|
adnano
|
b3fc301c13
|
server: Recover from ServeGemini panics
|
2021-02-15 00:36:33 -05:00 |
|
adnano
|
924bb31496
|
request: Don't read more than 1026 bytes
|
2021-02-15 00:16:21 -05:00 |
|
adnano
|
f8fcb11613
|
server: Implement Close and Shutdown methods
|
2021-02-14 23:58:33 -05:00 |
|
adnano
|
b8a6078815
|
Tweak returned error for requests that are too long
Return ErrInvalidRequest instead of ErrInvalidURL in Request.Write.
|
2021-02-14 23:33:18 -05:00 |
|
adnano
|
99cac894e9
|
fs: Refactor
|
2021-02-14 19:50:38 -05:00 |
|
adnano
|
f8777fdd8a
|
status: Update documentation
|
2021-02-14 19:28:29 -05:00 |
|
adnano
|
7830eced63
|
fs: Update documentation
|
2021-02-14 19:27:56 -05:00 |
|
adnano
|
2bb0725cc4
|
Make Request.Host optional
|
2021-02-14 19:02:34 -05:00 |
|
adnano
|
4b8c9f7c12
|
Update examples/client.go
|
2021-02-14 18:59:33 -05:00 |
|
adnano
|
87e336e020
|
Remove faulty status code check in ReadResponse
|
2021-02-14 18:57:13 -05:00 |
|
adnano
|
8c35c85ab2
|
server: Don't populate Request.Certificate field
Handlers should instead use the certificate provided in Request.TLS.
|
2021-02-14 17:34:57 -05:00 |
|
adnano
|
b2a1655173
|
Update Client documentation
|
2021-02-14 17:11:05 -05:00 |
|
adnano
|
715ce122ef
|
Update Response documentation
|
2021-02-14 16:23:38 -05:00 |
|
adnano
|
5945788ccd
|
Remove StatusClass* constants
Re-use the existing Status* constants and adjust StatusClass to return a
valid Status.
|
2021-02-14 16:01:39 -05:00 |
|
adnano
|
128cf1b6ec
|
Update documentation
|
2021-02-14 15:50:41 -05:00 |
|
adnano
|
829ed93978
|
server: Populate Request.RemoteAddr field
|
2021-02-13 21:10:19 -05:00 |
|
adnano
|
8fa39e3ed6
|
client: Punycode request URL
|
2021-02-09 16:55:14 -05:00 |
|
adnano
|
b5ccf188b2
|
client: Support IDNs
Convert IDNs to punycode before performing DNS lookups.
|
2021-02-09 15:59:47 -05:00 |
|
adnano
|
5824cc4c4e
|
Add Gemini specification version to README.md
|
2021-02-09 15:50:54 -05:00 |
|
adnano
|
54135733ae
|
Update documentation
|
2021-02-09 10:00:04 -05:00 |
|
adnano
|
a4590e7998
|
examples/client: Fix opening of known hosts file
|
2021-02-09 09:48:51 -05:00 |
|
adnano
|
8c0ff0547d
|
Make ResponseWriter an interface
|
2021-02-09 09:46:18 -05:00 |
|
adnano
|
ecfb9b2154
|
Use plain integers to represent status codes
|
2021-02-09 09:46:13 -05:00 |
|
adnano
|
00221a5df4
|
Update README.md
|
2021-02-08 12:53:37 -05:00 |
|
adnano
|
050f3d23c5
|
Rename Responder to Handler
|
2021-02-08 12:50:52 -05:00 |
|
adnano
|
d93adc7908
|
Make TLS field nil for unencrypted connections
|
2021-02-08 12:32:49 -05:00 |
|
adnano
|
c37abecc68
|
Remove unused field
|
2021-02-08 12:30:53 -05:00 |
|
adnano
|
10eed253f9
|
tofu: Implement PersistentHosts
|
2021-01-25 12:11:59 -05:00 |
|
adnano
|
1241af39f0
|
Update examples
|
2021-01-25 10:59:50 -05:00 |
|
adnano
|
f3d11d80c7
|
server: Allow handling any hostname with "*"
Allow registering a responder with the special pattern "*" to handle any
hostname.
|
2021-01-25 10:55:40 -05:00 |
|
adnano
|
456f2686bc
|
Guarantee that (*Response).Body is not nil
|
2021-01-15 15:18:00 -05:00 |
|
adnano
|
296f4fe027
|
fs: Remove unused import
|
2021-01-14 22:45:09 -05:00 |
|
adnano
|
94f623e2b8
|
client: Add note about TOFU
|
2021-01-14 22:34:12 -05:00 |
|