Class HttpResponse

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

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

      • HttpResponse

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

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

        @Stability(Stable)
        public HttpResponse​(@NotNull
                            HttpResponseExample responseExample)
        Matches any HTTP Response with the provided properties.

        Parameters:
        responseExample -
        • 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}
      • getStatus

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

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

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

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