Class HttpResponseWithHeaders


  • @SnowflakeJdbcInternalApi
    public class HttpResponseWithHeaders
    extends Object
    Simple container for HTTP response data including both body and headers. This provides a clean interface for methods that need access to response headers without exposing internal HTTP client implementation details.
    • Constructor Detail

      • HttpResponseWithHeaders

        public HttpResponseWithHeaders​(String responseBody,
                                       Map<String,​String> headers)
    • Method Detail

      • getResponseBody

        public String getResponseBody()
        Get the HTTP response body as a string.
        Returns:
        the response body
      • getHeaders

        public Map<String,​String> getHeaders()
        Get the HTTP response headers as an immutable map. If multiple headers exist with the same name, only the last value is included.
        Returns:
        immutable map of header name to header value