Interface McpSimulationResponse


Immutable response-head and bounded nonstreaming-body projection.
Author:
Mark Allen
  • Method Details

    • getStatusCode

      Returns:
      the HTTP status code, between 100 and 599
    • getHeaders

      Returns an immutable insertion-ordered header projection. Header names are coalesced case-insensitively under the first observed spelling, and values retain insertion order. Header-name lookups are also case-insensitive.
      Returns:
      immutable response headers
    • getBodyType

      Returns:
      the captured response-body type
    • getBody

      Returns a fresh copy for successfully captured EMPTY and JSON bodies. EMPTY returns a present zero-length array. SSE responses and JSON responses that exceed the byte bound return empty.
      Returns:
      a fresh body copy when the bounded body is available