Standard library / net/http
http.MethodOptions
Request communication options for the target. Expected stdout: 'OPTIONS\n'.
Formal Syntax & Structure
go syntaxgo
const MethodOptions = "OPTIONS"Working Example
Example Snippetgo
package main
import ( "fmt" "net/http")
func main() { fmt.Println(http.MethodOptions) }
func must[T any](v T, e error) T { if e != nil { panic(e) } return v}func check(e error) { if e != nil { panic(e) }}