use HeaderValue instead of []string; edit ReadHeaderAuth(), ReadHeaderSession(), ReadHeaderTransport() to accept HeaderValue

This commit is contained in:
aler9
2020-07-18 13:33:58 +02:00
parent aed1445226
commit 4754822be1
12 changed files with 151 additions and 124 deletions

View File

@@ -28,8 +28,11 @@ func headerKeyNormalize(in string) string {
return http.CanonicalHeaderKey(in)
}
// HeaderValue is an header value.
type HeaderValue []string
// Header is a RTSP reader, present in both Requests and Responses.
type Header map[string][]string
type Header map[string]HeaderValue
func headerRead(rb *bufio.Reader) (Header, error) {
h := make(Header)