namechar

package
v0.0.0-...-8845bbf Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 6, 2024 License: MIT Imports: 3 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL