method

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Get Send form data as URL parameters in query string. Data is visible in URL and browser
	// history. Limited data size and suitable for non-sensitive search forms.
	Get = Method("get")

	// Post Send form data in request body. Data is not visible in URL, supports larger payloads,
	// and is required for file uploads and sensitive information.
	Post = Method("post")

	// Dialog Close containing dialog and submit form data. Special method for forms inside dialog
	// elements that closes the dialog when submitted.
	Dialog = Method("dialog")
)

Variables for Method values

Functions

This section is empty.

Types

type Method

type Method []byte

Method HTTP method to use when submitting form data. Controls how form data is sent to the server and affects URL visibility, data size limits, and caching behavior.

func Custom

func Custom(value string) Method

Custom allows setting a custom Method value for edge cases or future specifications. Use this when the predefined constants don't cover your specific use case.

Jump to

Keyboard shortcuts

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