Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Methods = [...][]byte{ []byte("GET"), []byte("POST"), []byte("PUT"), []byte("DELETE"), []byte("CONNECT"), []byte("HEAD"), []byte("OPTIONS"), []byte("TRACE"), []byte("PATCH"), }
Methods are http methods from rfc. https://www.ietf.org/rfc/rfc2616.txt, http methods must be uppercase
Functions ¶
func ParseStartLine ¶
parseStartLine parses "GET /foo HTTP/1.1" OR "HTTP/1.1 200 OK" into its three parts.
func WriteHeaders ¶
func WriteHeaders(buf *bytes.Buffer, header textproto.MIMEHeader)
func WriteStartLine ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.