aboutsummaryrefslogtreecommitdiff
path: root/server.go
diff options
context:
space:
mode:
authoradnano <[email protected]>2020-09-25 19:09:49 -0400
committeradnano <[email protected]>2020-09-25 19:09:49 -0400
commit2f43c191cc7e0f07ef9cbc243e6a073793f3dddb (patch)
tree91d911456644b01d89bb991b56af38a75454a2f8 /server.go
parentRename gemini.go to client.go (diff)
downloadgo-gemini-2f43c191cc7e0f07ef9cbc243e6a073793f3dddb.tar.xz
go-gemini-2f43c191cc7e0f07ef9cbc243e6a073793f3dddb.zip
Reorganize
Diffstat (limited to 'server.go')
-rw-r--r--server.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/server.go b/server.go
index cb3782a..5eb685d 100644
--- a/server.go
+++ b/server.go
@@ -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.