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
|
87e336e020
|
Remove faulty status code check in ReadResponse
|
2021-02-14 18:57:13 -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
|
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
|
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
|
456f2686bc
|
Guarantee that (*Response).Body is not nil
|
2021-01-15 15:18:00 -05:00 |
|
adnano
|
106d0b1c1d
|
Update comments
|
2021-01-10 01:07:38 -05:00 |
|
adnano
|
cd988d85ae
|
Simplify ResponseWriter implementation
|
2021-01-10 00:50:35 -05:00 |
|
adnano
|
10c87efbc1
|
client: Close connection for unsuccessful responses
|
2020-12-22 19:22:01 -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
|
2efc7a601b
|
Remove Response.Request field
|
2020-12-18 00:19:53 -05:00 |
|
adnano
|
676fc4994c
|
Don't guarantee that (*Response).Body is always non-nil
|
2020-11-08 18:38:08 -05:00 |
|
adnano
|
fc24256683
|
Guarantee that (*Response).Body is non-nil
|
2020-10-31 23:04:47 -04:00 |
|
adnano
|
06b2ffca4a
|
Set default mimetype if META is empty
|
2020-10-31 20:32:38 -04:00 |
|
adnano
|
b25fdec389
|
Store a reference to the Request in Response
|
2020-10-28 00:21:27 -04:00 |
|
adnano
|
ab3ac68f6f
|
Make (*Response).Body an io.ReadCloser
|
2020-10-27 19:16:55 -04:00 |
|
adnano
|
4beed7e90e
|
Add (*ResponseWriter).WriteStatus function
|
2020-10-27 13:30:35 -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 |
|