|
|
@ -42,19 +42,22 @@ const ( |
|
|
|
maxHTTPVerbLen = 7 |
|
|
|
maxHTTPVerbLen = 7 |
|
|
|
) |
|
|
|
) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// HTTP2 PRI method.
|
|
|
|
|
|
|
|
var httpMethodPRI = "PRI" |
|
|
|
|
|
|
|
|
|
|
|
var defaultHTTP2Methods = []string{ |
|
|
|
var defaultHTTP2Methods = []string{ |
|
|
|
"PRI", |
|
|
|
httpMethodPRI, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
var defaultHTTP1Methods = []string{ |
|
|
|
var defaultHTTP1Methods = []string{ |
|
|
|
"OPTIONS", |
|
|
|
http.MethodOptions, |
|
|
|
"GET", |
|
|
|
http.MethodGet, |
|
|
|
"HEAD", |
|
|
|
http.MethodHead, |
|
|
|
"POST", |
|
|
|
http.MethodPost, |
|
|
|
"PUT", |
|
|
|
http.MethodPut, |
|
|
|
"DELETE", |
|
|
|
http.MethodDelete, |
|
|
|
"TRACE", |
|
|
|
http.MethodTrace, |
|
|
|
"CONNECT", |
|
|
|
http.MethodConnect, |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// ConnMux - Peeks into the incoming connection for relevant
|
|
|
|
// ConnMux - Peeks into the incoming connection for relevant
|
|
|
|