Documentation ¶
Overview ¶
See https://html.spec.whatwg.org/multipage/server-sent-events.html
Index ¶
Constants ¶
View Source
const (
ContentType = "text/event-stream"
)
Variables ¶
View Source
var ( ErrHTTPStatusNon200 = errors.New("HTTP status code indicates failure") ErrInvalidContentType = errors.New("invalid Content-Type, expected text/event-stream") // ErrCloseEventStream is a marker error that can be returned by // stream handling func to indicate that the event stream should be // closed. ErrCloseEventStream = errors.New("close event stream") )
Functions ¶
func ParseStream ¶ added in v0.2.0
func VerifyResponse ¶ added in v0.2.0
Types ¶
Click to show internal directories.
Click to hide internal directories.