getBaseURL constructs the base URL (scheme://host) from the request.
(r *http.Request)
| 248 | |
| 249 | // getBaseURL constructs the base URL (scheme://host) from the request. |
| 250 | func getBaseURL(r *http.Request) string { |
| 251 | scheme := "http" |
| 252 | if r.TLS != nil { |
| 253 | scheme = "https" |
| 254 | } |
| 255 | return scheme + "://" + r.Host |
| 256 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…