Documentation
¶
Index ¶
Constants ¶
View Source
const ( Version = "HTTP/1.1" Delim = "\r\n" MethodGet = "GET" MethodPost = "POST" MethodPut = "PUT" MethodDelete = "DELETE" StatusOK = "200 OK" StatusBadRequest = "400 Bad Request" StatusNotFound = "404 Not Found" StatusConflict = "409 Conflict" StatusInternalServerError = "500 Internal Server Error" ContentTypeResHeader = "Content-Type: " ContentLengthResHeader = "Content-Length: " ConnectionHeader = "Connection: Close" JSONContentType = "application/json" )
Variables ¶
This section is empty.
Functions ¶
func GetContentLength ¶
Types ¶
type HttpFrame ¶
type HttpFrame struct { Raw string Header HttpHeader Body []byte }
Click to show internal directories.
Click to hide internal directories.