mirror of
https://github.com/aler9/gortsplib
synced 2025-10-06 15:46:51 +08:00
update docs
This commit is contained in:
@@ -9,6 +9,10 @@ RTSP 1.0 primitives for the Go programming language.
|
||||
|
||||
See [rtsp-simple-server](https://github.com/aler9/rtsp-simple-server) and [rtsp-simple-proxy](https://github.com/aler9/rtsp-simple-proxy) for examples on how to use this library.
|
||||
|
||||
## Documentation
|
||||
|
||||
https://godoc.org/github.com/aler9/gortsplib
|
||||
|
||||
## Links
|
||||
|
||||
IETF Standard
|
||||
|
@@ -14,7 +14,8 @@ func md5Hex(in string) string {
|
||||
return hex.EncodeToString(h.Sum(nil))
|
||||
}
|
||||
|
||||
// AuthClient is an object that helps a client sending its credentials to a server.
|
||||
// AuthClient is an object that helps a client sending its credentials to a
|
||||
// server, with the Digest authentication method.
|
||||
type AuthClient struct {
|
||||
user string
|
||||
pass string
|
||||
|
@@ -7,7 +7,8 @@ import (
|
||||
"net/url"
|
||||
)
|
||||
|
||||
// AuthServer is an object that helps a server validating the credentials of a client.
|
||||
// AuthServer is an object that helps a server validating the credentials of
|
||||
// a client, sent with the Digest authentication method.
|
||||
type AuthServer struct {
|
||||
nonce string
|
||||
realm string
|
||||
|
@@ -32,9 +32,16 @@ const (
|
||||
|
||||
// Request is a RTSP request.
|
||||
type Request struct {
|
||||
// request method
|
||||
Method Method
|
||||
|
||||
// request url
|
||||
Url *url.URL
|
||||
|
||||
// map of header values
|
||||
Header Header
|
||||
|
||||
// optional content
|
||||
Content []byte
|
||||
}
|
||||
|
||||
|
@@ -61,9 +61,16 @@ const (
|
||||
|
||||
// Response is a RTSP response.
|
||||
type Response struct {
|
||||
// numeric status code
|
||||
StatusCode StatusCode
|
||||
|
||||
// status message
|
||||
StatusMessage string
|
||||
|
||||
// map of header values
|
||||
Header Header
|
||||
|
||||
// optional content
|
||||
Content []byte
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user