Documentation
¶
Index ¶
Constants ¶
View Source
const (
ErrNotNameChar = erorr.Error("httpsse: not name char")
)
Variables ¶
This section is empty.
Functions ¶
func Read ¶
func Read(runescanner io.RuneScanner) (r rune, size int, err error)
Reads returns the next "name-char" character as defined by the HTTP-SSE specification: https://html.spec.whatwg.org/multipage/server-sent-events.html
name-char = %x0000-0009 / %x000B-000C / %x000E-0039 / %x003B-10FFFF ; a scalar value other than U+000A LINE FEED (LF), U+000D CARRIAGE RETURN (CR), or U+003A
If the next character is NOT a "name-char", then it will return the err ErrNotNameChar. (The next character will be unread.)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.