Class ResponseWithHeaders<R,​H>


  • public final class ResponseWithHeaders<R,​H>
    extends java.lang.Object
    Pairs a deserialized response body with typed response headers, mirroring apitype.ResponseWithHeaders[R, H] (Go) / ResponseWithHeaders<R, H> (TypeScript / .NET) / ResponseWithHeaders[R, H] (Python). Returned by generated *Api methods for operations whose response declares response headers.
    • Constructor Summary

      Constructors 
      Constructor Description
      ResponseWithHeaders​(R response, H headers)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • response

        public final R response
      • headers

        public final H headers
    • Constructor Detail

      • ResponseWithHeaders

        public ResponseWithHeaders​(R response,
                                   H headers)