Class JettyHttpResponse<T>

  • All Implemented Interfaces:
    io.fabric8.kubernetes.client.http.HttpHeaders, io.fabric8.kubernetes.client.http.HttpResponse<T>

    public class JettyHttpResponse<T>
    extends Object
    implements io.fabric8.kubernetes.client.http.HttpResponse<T>
    • Constructor Detail

      • JettyHttpResponse

        public JettyHttpResponse​(io.fabric8.kubernetes.client.http.HttpRequest request,
                                 org.eclipse.jetty.client.api.Response response,
                                 T body)
    • Method Detail

      • headers

        public List<String> headers​(String key)
        Specified by:
        headers in interface io.fabric8.kubernetes.client.http.HttpHeaders
      • headers

        public Map<String,​List<String>> headers()
        Specified by:
        headers in interface io.fabric8.kubernetes.client.http.HttpHeaders
      • code

        public int code()
        Specified by:
        code in interface io.fabric8.kubernetes.client.http.HttpResponse<T>
      • body

        public T body()
        Specified by:
        body in interface io.fabric8.kubernetes.client.http.HttpResponse<T>
      • request

        public io.fabric8.kubernetes.client.http.HttpRequest request()
        Specified by:
        request in interface io.fabric8.kubernetes.client.http.HttpResponse<T>
      • getResponse

        public org.eclipse.jetty.client.api.Response getResponse()
      • previousResponse

        public Optional<io.fabric8.kubernetes.client.http.HttpResponse<?>> previousResponse()
        Specified by:
        previousResponse in interface io.fabric8.kubernetes.client.http.HttpResponse<T>