(c context.Context)
| 67 | } |
| 68 | |
| 69 | func GetBaseURL(c context.Context) *url.URL { |
| 70 | r := GetRequest(c) |
| 71 | url := &url.URL{ |
| 72 | Scheme: "http", |
| 73 | Host: r.Host, |
| 74 | } |
| 75 | if IsSecure(r) { |
| 76 | url.Scheme = "https" |
| 77 | } |
| 78 | return url |
| 79 | } |
| 80 | |
| 81 | type loggingEntry struct { |
| 82 | Proto string |
nothing calls this directly
no test coverage detected