mirror of
https://github.com/aler9/gortsplib
synced 2025-10-05 07:06:58 +08:00
server: test invalid methods and double sessions
This commit is contained in:
@@ -31,6 +31,14 @@ func (e ErrServerCSeqMissing) Error() string {
|
||||
return "CSeq is missing"
|
||||
}
|
||||
|
||||
// ErrServerInvalidMethod is an error that can be returned by a server.
|
||||
type ErrServerInvalidMethod struct{}
|
||||
|
||||
// Error implements the error interface.
|
||||
func (e ErrServerInvalidMethod) Error() string {
|
||||
return "invalid method"
|
||||
}
|
||||
|
||||
// ErrServerWrongState is an error that can be returned by a server.
|
||||
type ErrServerWrongState struct {
|
||||
AllowedList []fmt.Stringer
|
||||
|
Reference in New Issue
Block a user