MCPcopy
hub / github.com/openfaas/faas / getCallbackURLHeader

Function getCallbackURLHeader

gateway/handlers/queue_proxy.go:70–84  ·  view source on GitHub ↗
(header http.Header)

Source from the content-addressed store, hash-verified

68}
69
70func getCallbackURLHeader(header http.Header) (*url.URL, error) {
71 value := header.Get("X-Callback-Url")
72 var callbackURL *url.URL
73
74 if len(value) > 0 {
75 urlVal, err := url.Parse(value)
76 if err != nil {
77 return callbackURL, err
78 }
79
80 callbackURL = urlVal
81 }
82
83 return callbackURL, nil
84}
85
86func getNameParts(name string) (fn, ns string) {
87 fn = name

Callers 3

MakeQueuedProxyFunction · 0.85

Calls 1

GetMethod · 0.65

Tested by 2

Used in the wild real call sites across dependent graphs

searching dependent graphs…