excludePrefix

fun excludePrefix(pathPrefix: String)

Exclude calls whose path (not including the query string) starts with pathPrefix from being redirected to https by this feature. The path of an absolute-form request target (GET http://host/health) is its own path (/health), so such a call is excluded exactly when the origin-form request would be.