domain

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentType

type ContentType string
const (
	None ContentType = "none"
	Text ContentType = "text"
	Form ContentType = "form"
	Json ContentType = "json"
	Xml  ContentType = "xml"
	Html ContentType = "html"
)

func ContentTypeFromHeader

func ContentTypeFromHeader(contentType string) (ContentType, bool)

func RequestContentTypes

func RequestContentTypes() []ContentType

func (ContentType) String

func (s ContentType) String() string

func (ContentType) ToHeader

func (s ContentType) ToHeader() string

type HttpMethod

type HttpMethod string
const (
	GET     HttpMethod = "GET"
	POST    HttpMethod = "POST"
	PUT     HttpMethod = "PUT"
	DELETE  HttpMethod = "DELETE"
	PATCH   HttpMethod = "PATCH"
	HEAD    HttpMethod = "HEAD"
	OPTIONS HttpMethod = "OPTIONS"
	TRACE   HttpMethod = "TRACE"
	CONNECT HttpMethod = "CONNECT"
)

func HttpMethodFromString

func HttpMethodFromString(value string) (*HttpMethod, error)

func HttpMethods

func HttpMethods() []HttpMethod

func (HttpMethod) String

func (m HttpMethod) String() string

type NodeReference

type NodeReference struct {
	Order int    `json:"order"`
	Item  string `json:"item"`
}

Directories

Path Synopsis
formatter
swr

Jump to

Keyboard shortcuts

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