constants

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2025 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package constants defines protocol and method constants.

Index

Constants

View Source
const (
	MethodGET     = "GET"
	MethodPOST    = "POST"
	MethodPUT     = "PUT"
	MethodDELETE  = "DELETE"
	MethodPATCH   = "PATCH"
	MethodHEAD    = "HEAD"
	MethodOPTIONS = "OPTIONS"
)

HTTP methods

View Source
const (
	TransportHTTP    = "http"
	TransportGRPC    = "grpc"
	TransportTCP     = "tcp"
	TransportGraphQL = "graphql"
)

Transport types

Variables

ValidHTTPMethods contains all valid HTTP verbs for validation

Functions

func CanonicalizeMethod

func CanonicalizeMethod(m string) string

CanonicalizeMethod returns canonical uppercase method name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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