HttpRouteMatch

public struct HttpRouteMatch : AWSShape

Undocumented

  • Declaration

    Swift

    public static var _members: [AWSShapeMember]
  • An object that represents the client request headers to match on.

    Declaration

    Swift

    public let headers: [HttpRouteHeader]?
  • The client request method to match on. Specify only one.

    Declaration

    Swift

    public let method: HttpMethod?
  • Specifies the path to match requests with. This parameter must always start with /, which by itself matches all requests to the virtual service name. You can also match for path-based routing of requests. For example, if your virtual service name is my-service.local and you want the route to match requests to my-service.local/metrics, your prefix should be /metrics.

    Declaration

    Swift

    public let prefix: String
  • The client request scheme to match on. Specify only one.

    Declaration

    Swift

    public let scheme: HttpScheme?
  • Undocumented

    Declaration

    Swift

    public init(headers: [HttpRouteHeader]? = nil, method: HttpMethod? = nil, prefix: String, scheme: HttpScheme? = nil)
  • Declaration

    Swift

    public func validate(name: String) throws