diff options
Diffstat (limited to 'internal/types')
-rw-r--r-- | internal/types/protocol.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/internal/types/protocol.go b/internal/types/protocol.go new file mode 100644 index 0000000..7166d8f --- /dev/null +++ b/internal/types/protocol.go @@ -0,0 +1,19 @@ +package types + +import ( + "io" + "net/url" +) + +type ServerProtocol interface { + TemporaryRedirect(*url.URL) *Response + PermanentRedirect(*url.URL) *Response + + TemporaryServerError(error) *Response + PermanentServerError(error) *Response + CGIFailure(error) *Response + + Success(filename string, body io.Reader) *Response + + ParseResponse(io.Reader) (*Response, error) +} |