formmethod

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Get Use HTTP GET method for form submission. Data appears in URL parameters and is
	// visible in browser history. Suitable for search forms and non-sensitive data.
	Get = FormMethod("get")

	// Post Use HTTP POST method for form submission. Data is sent in request body and not
	// visible in URL. Required for sensitive data, file uploads, and data modification.
	Post = FormMethod("post")
)

Variables for FormMethod values

Functions

This section is empty.

Types

type FormMethod

type FormMethod []byte

FormMethod HTTP method override for individual submit inputs. Allows different submit buttons to use different HTTP methods, overriding the form's default method attribute.

func Custom

func Custom(value string) FormMethod

Custom allows setting a custom FormMethod 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