parse

package
v0.5.7 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 8 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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