parse

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FuncDefs

func FuncDefs() []api.JSFuncDef

parseFuncDefs returns declarative definitions for vigolium.parse.* functions. These functions provide structured parsing of URLs, raw HTTP messages, headers, cookies, query strings, JSON, and form bodies — making it easier to write concise extension scripts.

func GetAttr

func GetAttr(n *html.Node, key string) string

GetAttr returns the value of an attribute on an HTML node, or empty string.

func SplitHTTPMessage

func SplitHTTPMessage(raw string) (headerSection, body string)

SplitHTTPMessage splits a raw HTTP message into its header section and body. Recognizes both CRLF (\r\n\r\n) and LF-only (\n\n) blank-line separators.

func SplitHeaderLines

func SplitHeaderLines(headerSection string) []string

SplitHeaderLines splits a header section into individual lines. Handles both CRLF (\r\n) and LF-only (\n) line endings; strips trailing CR. Empty lines are dropped.

func SplitPathQuery

func SplitPathQuery(fullPath string) (path, query string)

SplitPathQuery splits a full request path into the path and query string parts. The returned query string does NOT include the leading "?".

Types

This section is empty.

Jump to

Keyboard shortcuts

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