Closed as not planned
Description
The scheme match via pseudo headers suggested in #2455 only applies to HTTP/2. It would be useful to still match on the scheme for any HTTP version.
One use case is the match could be used to prevent redirect loops. From #1185 (comment)
apiVersion: gateway.networking.k8s.io/v1alpha2
kind: HTTPRoute
metadata:
name: http-filter-redirect
spec:
hostnames:
- redirect.example
rules:
- matches:
- scheme: http
filters:
- type: RequestRedirect
requestRedirect:
scheme: https
statusCode: 301
In the above example we have the HTTPRoute perform a redirect if the scheme of the request is http