constants

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: MIT 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. Returns GET if m is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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