1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.net;
12 * Contains basic information about a response. Sent to the embedder whenever
13 * headers are received.
15 public abstract interface ResponseInfo {
17 * Return the url the response is for (Not the original URL - after
18 * redirects, it's the new URL).
24 * @return the url chain, including all redirects. The originally
25 * requested URL is first.
30 * Returns the HTTP status code.
32 int getHttpStatusCode();
35 * Returns an unmodifiable map of the response-header fields and values.
36 * The null key is mapped to the HTTP status line for compatibility with
39 Map<String, List<String>> getAllHeaders();
41 /** True if the response came from the cache. Requests that were
42 * revalidated over the network before being retrieved from the cache are
51 boolean wasFetchedOverSPDY();
57 boolean wasFetchedOverQUIC();