MCPcopy Create free account
hub / github.com/corestoreio/pkg / FromRequest

Method FromRequest

net/runmode/code.go:69–78  ·  view source on GitHub ↗

FromRequest returns from a GET request with a query string the value of the store code. If no code can be found in the query string, this function falls back to the cookie name defined in field FieldName. Valid has three values: 0 not valid, 10 valid and code found in GET query string, 20 valid and

(_ scope.TypeID, req *http.Request)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 5

keyURLFNMethod · 0.95
fromCookieMethod · 0.95
GetMethod · 0.65
ContainsMethod · 0.45
QueryMethod · 0.45