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

22 Commits

Author SHA1 Message Date
adnano
087c8a62e7 request: Allow User in URLs 2021-02-16 00:55:56 -05:00
adnano
317faffdeb Remove NewRequestFromURL method
Use a Request struct literal instead.
2021-02-15 17:23:56 -05:00
adnano
924bb31496 request: Don't read more than 1026 bytes 2021-02-15 00:16:21 -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
2bb0725cc4 Make Request.Host optional 2021-02-14 19:02:34 -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
128cf1b6ec Update documentation 2021-02-14 15:50:41 -05:00
adnano
d93adc7908 Make TLS field nil for unencrypted connections 2021-02-08 12:32:49 -05:00
adnano
106d0b1c1d Update comments 2021-01-10 01:07:38 -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
70bb9c4e59 Allow Request.Context to be nil 2020-12-17 17:16:55 -05:00
adnano
d37431fd29 Fix escaping of queries 2020-11-27 22:27:52 -05:00
adnano
611af9f6ed Add context to requests 2020-11-26 00:42:25 -05:00
adnano
1fb24b625f Remove some unnecessary errors 2020-11-04 23:46:05 -05:00
adnano
386b1c56da server: Populate (*Request).Certificate field 2020-11-01 16:25:59 -05: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
1293b2467a Add NewRequestFromURL function 2020-10-27 13:27:52 -04:00
adnano
6cccba3800 Rename repository to go-gemini 2020-10-24 15:15:32 -04:00
adnano
dda63807b5 Refactor 2020-10-21 17:07:28 -04:00