MCPcopy Create free account
hub / github.com/gobwas/httphead / SplitRequestLine

Function SplitRequestLine

head.go:30–32  ·  view source on GitHub ↗

SplitRequestLine splits given slice of bytes into three chunks without parsing.

(line []byte)

Source from the content-addressed store, hash-verified

28// SplitRequestLine splits given slice of bytes into three chunks without
29// parsing.
30func SplitRequestLine(line []byte) (method, uri, version []byte) {
31 return split3(line, ' ')
32}
33
34// ParseRequestLine parses http request line like "GET / HTTP/1.0".
35func ParseRequestLine(line []byte) (r RequestLine, ok bool) {

Callers

nothing calls this directly

Calls 1

split3Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…