diff options
| author | adnano <[email protected]> | 2020-09-25 19:09:49 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-25 19:09:49 -0400 |
| commit | 2f43c191cc7e0f07ef9cbc243e6a073793f3dddb (patch) | |
| tree | 91d911456644b01d89bb991b56af38a75454a2f8 /server.go | |
| parent | Rename gemini.go to client.go (diff) | |
| download | go-gemini-2f43c191cc7e0f07ef9cbc243e6a073793f3dddb.tar.xz go-gemini-2f43c191cc7e0f07ef9cbc243e6a073793f3dddb.zip | |
Reorganize
Diffstat (limited to 'server.go')
| -rw-r--r-- | server.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -3,6 +3,7 @@ package gemini import ( "bufio" "crypto/tls" + "errors" "log" "net" "net/url" @@ -12,6 +13,11 @@ import ( "time" ) +// Errors. +var ( + ErrBodyNotAllowed = errors.New("gemini: response status code does not allow for body") +) + // Server is a Gemini server. type Server struct { // Addr specifies the address that the server should listen on. |