Versions in this module Expand all Collapse all v1 v1.1.0 Jan 19, 2021 v1.0.0 Jan 9, 2021 Changes in this version + const FieldAccept + const FieldAcceptEncoding + const FieldAcceptLanguage + const FieldAllow + const FieldAuthorization + const FieldBandwidth + const FieldBlocksize + const FieldCSeq + const FieldCacheControl + const FieldConference + const FieldConnection + const FieldContentBase + const FieldContentEncoding + const FieldContentLanguage + const FieldContentLength + const FieldContentLocation + const FieldContentType + const FieldDate + const FieldExpires + const FieldFrom + const FieldIfModifiedSince + const FieldLastModified + const FieldProxyAuthenticate + const FieldProxyRequire + const FieldPublic + const FieldRTPInfo + const FieldRange + const FieldReferer + const FieldRequire + const FieldRetryAfter + const FieldScale + const FieldServer + const FieldSession + const FieldSpeed + const FieldTransport + const FieldUnsupported + const FieldUserAgent + const FieldVia + const FieldWWWAuthenticate + const MethodAnnounce + const MethodDescribe + const MethodGetParameter + const MethodOptions + const MethodPause + const MethodPlay + const MethodRecord + const MethodRedirect + const MethodSetParameter + const MethodSetup + const MethodTeardown + const StatusAggregateOpNotAllowed + const StatusBadGateway + const StatusBadRequest + const StatusConferenceNotFound + const StatusContinue + const StatusCreated + const StatusDestinationUnreachable + const StatusForbidden + const StatusGatewayTimeout + const StatusGone + const StatusHeaderFieldNotValid + const StatusInternalServerError + const StatusInvalidParameter + const StatusInvalidRange + const StatusLengthRequired + const StatusLowOnStorageSpace + const StatusMethodNotAllowed + const StatusMethodNotValidInThisState + const StatusMovedPermanently + const StatusMovedTemporarily + const StatusMultipleChoices + const StatusNotAcceptable + const StatusNotEnoughBandwidth + const StatusNotFound + const StatusNotImplemented + const StatusNotModified + const StatusOK + const StatusOnlyAggregateOpAllowed + const StatusOptionNotSupported + const StatusParameterIsReadOnly + const StatusPaymentRequired + const StatusPreconditionFailed + const StatusProxyAuthRequired + const StatusRTSPVersionNotSupported + const StatusRequestEntityTooLarge + const StatusRequestTimeout + const StatusRequestURITooLong + const StatusSeeOther + const StatusServiceUnavailable + const StatusSessionNotFound + const StatusUnauthorized + const StatusUnsupportedMediaType + const StatusUnsupportedTransport + const StatusUseProxy + func FormatDigestAuthResponse(realm, nonce, method, url string, username, password string) string + func StatusText(code int) string + type Header map[string][]string + func ReadHeader(r *bufio.Reader) (Header, error) + func (h Header) Add(key, value string) + func (h Header) Del(key string) + func (h Header) Get(key string) string + func (h Header) Int(key string) int + func (h Header) Set(key, value string) + func (h Header) SetInt(key string, value int) + func (h Header) Setf(key, format string, a ...interface{}) string + func (h Header) Write(w io.Writer) error + type Request struct + Body string + Header Header + Method string + Proto string + URL *url.URL + func ReadRequest(r *bufio.Reader) (*Request, error) + func (req *Request) BasicAuth() (username, password string, ok bool) + func (req *Request) DigestAuth() (username, response string, ok bool) + func (req *Request) SetBasicAuth(username, password string) + func (req *Request) SetDigestAuth(url *url.URL, realm, nonce, username, password string) + func (req *Request) String() string + func (req *Request) Write(w io.Writer) error + type Response struct + Body string + Header Header + Proto string + Request *Request + Status string + StatusCode int + func ReadResponse(r *bufio.Reader) (*Response, error) + func (resp *Response) BasicAuth() (realm string, ok bool) + func (resp *Response) DigestAuth() (realm, nonce string, ok bool) + func (resp *Response) SetBasicAuth(realm string) + func (resp *Response) SetDigestAuth(realm, nonce string) + func (resp *Response) String() string + func (resp *Response) Write(w io.Writer) error