Documentation
¶
Index ¶
Constants ¶
View Source
const ( StatusOK = 200 StatusRequestCancelled = 487 StatusDecline = 603 )
Variables ¶
View Source
var ( ErrInvalidAuthenticationChallenge = errors.New("invalid authentication challenge") ErrUnsolveableAuthenticationChallenge = errors.New("unsolveable authentication challenge") )
View Source
var (
ErrInvaldURI = errors.New("invalid uri")
)
View Source
var (
ErrParsingError = errors.New("error parsing response")
)
View Source
var (
ErrRoundTripFailed = errors.New("round trip failed")
)
Functions ¶
This section is empty.
Types ¶
type AuthenticationChallenge ¶
type AuthenticationHandler ¶
type AuthenticationHandler interface {
Solve(challenge AuthenticationChallenge, req *Request) error
}
func NewDigestHandler ¶
func NewDigestHandler(username, password string) AuthenticationHandler
type Connection ¶
type Dialog ¶
type Dialog struct {
// contains filtered or unexported fields
}
type Response ¶
type Response struct { StatusCode int StatusMessage string Protocol string Header Header Body []byte LocalAddr, RemoteAddr net.Addr }
func RecvFinal ¶
func RecvFinal(c Connection) (*Response, error)
func (*Response) DebugString ¶
type TCPTransport ¶
type TCPTransport struct {
DumpRoundTrips bool
}
func (*TCPTransport) Send ¶
func (t *TCPTransport) Send(req *Request) (Connection, error)
type Transport ¶
type Transport interface {
Send(*Request) (Connection, error)
}
Click to show internal directories.
Click to hide internal directories.