import { IDevKnativeNetworkingPkgApisNetworkingV1alpha1HeaderMatch } from "./HeaderMatch.js"; import { IDevKnativeNetworkingPkgApisNetworkingV1alpha1IngressBackendSplit } from "./IngressBackendSplit.js"; import { ModelData, Model } from "@kubernetes-models/base"; /** * HTTPIngressPath associates a path regex with a backend. Incoming URLs matching * the path are forwarded to the backend. */ export interface IHTTPIngressPath { /** * AppendHeaders allow specifying additional HTTP headers to add * before forwarding a request to the destination service. * * NOTE: This differs from K8s Ingress which doesn't allow header appending. */ "appendHeaders"?: { [key: string]: string; }; /** * Headers defines header matching rules which is a map from a header name * to HeaderMatch which specify a matching condition. * When a request matched with all the header matching rules, * the request is routed by the corresponding ingress rule. * If it is empty, the headers are not used for matching */ "headers"?: { [key: string]: IDevKnativeNetworkingPkgApisNetworkingV1alpha1HeaderMatch; }; /** * Path represents a literal prefix to which this rule should apply. * Currently it can contain characters disallowed from the conventional * "path" part of a URL as defined by RFC 3986. Paths must begin with * a '/'. If unspecified, the path defaults to a catch all sending * traffic to the backend. */ "path"?: string; /** * RewriteHost rewrites the incoming request's host header. * * This field is currently experimental and not supported by all Ingress * implementations. */ "rewriteHost"?: string; /** * Splits defines the referenced service endpoints to which the traffic * will be forwarded to. */ "splits": Array; } /** * HTTPIngressPath associates a path regex with a backend. Incoming URLs matching * the path are forwarded to the backend. */ export declare class HTTPIngressPath extends Model implements IHTTPIngressPath { "appendHeaders"?: { [key: string]: string; }; "headers"?: { [key: string]: IDevKnativeNetworkingPkgApisNetworkingV1alpha1HeaderMatch; }; "path"?: string; "rewriteHost"?: string; "splits": Array; constructor(data?: ModelData); } export type { IHTTPIngressPath as IDevKnativeNetworkingPkgApisNetworkingV1alpha1HTTPIngressPath, HTTPIngressPath as DevKnativeNetworkingPkgApisNetworkingV1alpha1HTTPIngressPath };