Adnan Maolood
|
a3c1804395
|
Move ResponseWriter.Flush to Flusher interface
|
2021-02-17 11:44:13 -05:00 |
|
Adnan Maolood
|
bf4959a8ba
|
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 |
|
Adnan Maolood
|
198a0b31c8
|
Remove faulty status code check in ReadResponse
|
2021-02-14 18:57:13 -05:00 |
|
Adnan Maolood
|
0c303588a4
|
Update Response documentation
|
2021-02-14 16:23:38 -05:00 |
|
Adnan Maolood
|
37e5686764
|
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 |
|
Adnan Maolood
|
f6824bd813
|
Make ResponseWriter an interface
|
2021-02-09 09:46:18 -05:00 |
|
Adnan Maolood
|
5ef5824d6f
|
Use plain integers to represent status codes
|
2021-02-09 09:46:13 -05:00 |
|
Adnan Maolood
|
29f2b3738d
|
Make TLS field nil for unencrypted connections
|
2021-02-08 12:32:49 -05:00 |
|
Adnan Maolood
|
1f39cab063
|
Remove unused field
|
2021-02-08 12:30:53 -05:00 |
|
Adnan Maolood
|
31de8d49b0
|
Guarantee that (*Response).Body is not nil
|
2021-01-15 15:18:00 -05:00 |
|
Adnan Maolood
|
5e977250ec
|
Update comments
|
2021-01-10 01:07:38 -05:00 |
|
Adnan Maolood
|
d01d50ff1a
|
Simplify ResponseWriter implementation
|
2021-01-10 00:50:35 -05:00 |
|
Adnan Maolood
|
c8626bae17
|
client: Close connection for unsuccessful responses
|
2020-12-22 19:22:01 -05:00 |
|
Adnan Maolood
|
d34d5df89e
|
Add ReadRequest and ReadResponse functions
|
2020-12-18 01:42:05 -05:00 |
|
Adnan Maolood
|
decd72cc23
|
Expose Request.Write and Response.Read functions
|
2020-12-18 01:14:06 -05:00 |
|
Adnan Maolood
|
824887eab9
|
Remove Response.Request field
|
2020-12-18 00:19:53 -05:00 |
|
Adnan Maolood
|
5332dc6280
|
Don't guarantee that (*Response).Body is always non-nil
|
2020-11-08 18:38:08 -05:00 |
|
Adnan Maolood
|
33c1dc435d
|
Guarantee that (*Response).Body is non-nil
|
2020-10-31 23:04:47 -04:00 |
|
Adnan Maolood
|
a2fc1772bf
|
Set default mimetype if META is empty
|
2020-10-31 20:32:38 -04:00 |
|
Adnan Maolood
|
7a1a33513a
|
Store a reference to the Request in Response
|
2020-10-28 00:21:27 -04:00 |
|
Adnan Maolood
|
12a9deb1a6
|
Make (*Response).Body an io.ReadCloser
|
2020-10-27 19:16:55 -04:00 |
|
Adnan Maolood
|
79165833de
|
Add (*ResponseWriter).WriteStatus function
|
2020-10-27 13:30:35 -04:00 |
|
Adnan Maolood
|
f0345f3495
|
Rename repository to go-gemini
|
2020-10-24 15:15:32 -04:00 |
|
Adnan Maolood
|
9506f69f1a
|
Refactor
|
2020-10-21 17:07:28 -04:00 |
|