diff options
| author | Adnan Maolood <[email protected]> | 2020-12-18 01:14:06 -0500 |
|---|---|---|
| committer | Adnan Maolood <[email protected]> | 2020-12-18 01:14:06 -0500 |
| commit | decd72cc230bac07a24d1416df2360bae807532b (patch) | |
| tree | 0c268a31b611db05e21b02679f5f99dcbd5b77e8 /response.go | |
| parent | server: Don't always assume TLS is used (diff) | |
| download | go-gemini-decd72cc230bac07a24d1416df2360bae807532b.tar.xz go-gemini-decd72cc230bac07a24d1416df2360bae807532b.zip | |
Expose Request.Write and Response.Read functions
Diffstat (limited to 'response.go')
| -rw-r--r-- | response.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/response.go b/response.go index 447050d..88baeeb 100644 --- a/response.go +++ b/response.go @@ -26,8 +26,8 @@ type Response struct { TLS tls.ConnectionState } -// read reads a Gemini response from the provided io.ReadCloser. -func (resp *Response) read(rc io.ReadCloser) error { +// Read reads a Gemini response from the provided io.ReadCloser. +func (resp *Response) Read(rc io.ReadCloser) error { br := bufio.NewReader(rc) // Read the status statusB := make([]byte, 2) |