Class HttpRequest

  • All Implemented Interfaces:
    software.amazon.jsii.JsiiSerializable

    @Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
               date="2025-08-20T01:46:20.843Z")
    @Stability(Stable)
    public class HttpRequest
    extends AnyMatcher
    Matches any HTTP Request with the provided properties.
    • Constructor Detail

      • HttpRequest

        protected HttpRequest​(software.amazon.jsii.JsiiObjectRef objRef)
      • HttpRequest

        protected HttpRequest​(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
      • HttpRequest

        @Stability(Stable)
        public HttpRequest​(@NotNull
                           HttpRequestExample requestExample)
        Matches any HTTP Request with the provided properties.

        Parameters:
        requestExample -
        • An HttpResponseExample that describes the response.
        This parameter is required.
    • Method Detail

      • toJSON

        @Stability(Stable)
        @NotNull
        public Object toJSON()
        For non-TypeScript implementations (see AnyMatcher.toJSON).
        Overrides:
        toJSON in class AnyMatcher
        Returns:
        An object in the matcher format described {@link https://case.contract-testing.io/docs/reference/plugin-framework in the Extending ContractCase documentation}
      • getMethod

        @Stability(Stable)
        @NotNull
        public Object getMethod()
      • getPath

        @Stability(Stable)
        @NotNull
        public Object getPath()
      • getBody

        @Stability(Stable)
        @Nullable
        public Object getBody()
      • getHeaders

        @Stability(Stable)
        @Nullable
        public Object getHeaders()
      • getQuery

        @Stability(Stable)
        @Nullable
        public Object getQuery()
      • getUniqueName

        @Stability(Stable)
        @Nullable
        public String getUniqueName()