static Mono < Object > decode ( HttpResponse httpResponse , SerializerAdapter serializer , HttpResponseDecodeData decodeData ) { Type headerType = decodeData . headersType ( ) ; if ( headerType == null ) { return Mono . empty ( ) ; } else { return Mono . defer ( ( ) -> { try { return Mono . just ( deserializeHeaders ( httpResponse . headers ( ) , serializer , decodeData ) ) ; } catch ( IOException e ) { return Mono . error ( new HttpRequestException ( "HTTP response has malformed headers" , httpResponse , e ) ) ; } } ) ; } }
Decode headers of the http response .