Interface McpSimulationResponse
Immutable response-head and bounded nonstreaming-body projection.
- Author:
- Mark Allen
-
Method Summary
Modifier and TypeMethodDescriptiongetBody()Returns a fresh copy for successfully captured EMPTY and JSON bodies.Returns an immutable insertion-ordered header projection.
-
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
-