Standard library / net/http

http.MethodConnect

Request a tunnel to the destination; restrict to authorized targets. Expected stdout: 'CONNECT\n'.

Formal Syntax & Structure

go syntaxgo
const MethodConnect = "CONNECT"

Working Example

Example Snippetgo
package main
import (  "fmt"  "net/http")
func main() { fmt.Println(http.MethodConnect) }
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)  }}
Go Reference