methods

package
v2.0.0-...-f0a18de Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	// Options Return HTTP method OPTIONS
	Options() Value

	// Get Return HTTP method GET
	Get() Value

	// Head Return HTTP method GET
	Head() Value

	// Post Return HTTP method POST
	Post() Value

	// Put Return HTTP method PUT
	Put() Value

	// Patch Return HTTP method PATCH
	Patch() Value

	// Delete Return HTTP method DELETE
	Delete() Value

	// Trace Return HTTP method TRACE
	Trace() Value

	// Connect Return HTTP method CONNECT
	Connect() Value

	// Parse string and return value interface
	Parse(inp string) Value
}

Interface is an methods interface

func New

func New() Interface

New Function create new implementation of interface

type Type

type Type int

Type Type of methods

type Value

type Value interface {
	// Int Return method as int constant
	Int() int

	// String Return method as string constant
	String() string

	// Type Return method as Type constant
	Type() Type

	// EqualFold Reports whether s, are equal value of method with case-folding
	EqualFold(s string) bool
}

Value Value is an interface of method

func Parse

func Parse(inp string) Value

Parse string and return interface

Jump to

Keyboard shortcuts

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