summaryrefslogtreecommitdiff
path: root/internal/types/protocol.go
blob: 7166d8f56e1e9392997f4b160f4b381d879b9cb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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)
}