http_response_headers_util.h 918 B

123456789101112131415161718192021222324252627
  1. // Copyright 2015 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.
  4. #ifndef IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
  5. #define IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_
  6. #include "net/http/http_response_headers.h"
  7. @class NSHTTPURLResponse;
  8. namespace net {
  9. // Placeholder status description since the actual text from the headers is not
  10. // available.
  11. extern const char kDummyHttpStatusDescription[];
  12. // Constructs a net::HttpResponseHeaders from |response|.
  13. // Note: The HTTP version and the status code description are not accessible
  14. // from NSHTTPURLResponse, so HTTP/1.0 and kDummyHttpStatusDescription will
  15. // be used in the status line instead.
  16. scoped_refptr<HttpResponseHeaders> CreateHeadersFromNSHTTPURLResponse(
  17. NSHTTPURLResponse* response);
  18. } // namespace net
  19. #endif // IOS_NET_HTTP_RESPONSE_HEADERS_UTIL_H_