MCPcopy
hub / github.com/git-lfs/git-lfs / getReqOperation

Function getReqOperation

lfsapi/auth.go:333–339  ·  view source on GitHub ↗
(req *http.Request)

Source from the content-addressed store, hash-verified

331}
332
333func getReqOperation(req *http.Request) string {
334 operation := "download"
335 if req.Method == "POST" || req.Method == "PUT" {
336 operation = "upload"
337 }
338 return operation
339}
340
341var (
342 authenticateHeaders = []string{"Lfs-Authenticate", "Www-Authenticate"}

Callers 2

DoAPIRequestWithAuthMethod · 0.85
getCredsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected