MCPcopy Create free account
hub / github.com/asternic/wuzapi / isHTTPURL

Function isHTTPURL

helpers.go:156–165  ·  view source on GitHub ↗
(input string)

Source from the content-addressed store, hash-verified

154 return true
155 }
156 }
157 return false
158}
159
160func isHTTPURL(input string) bool {
161 parsed, err := url.ParseRequestURI(input)
162 if err != nil {
163 return false
164 }
165 if parsed.Scheme != "http" && parsed.Scheme != "https" {
166 return false
167 }
168 return parsed.Host != ""

Callers 6

SendDocumentMethod · 0.85
SendAudioMethod · 0.85
SendImageMethod · 0.85
SendStickerMethod · 0.85
SendVideoMethod · 0.85
SendButtonsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected