http_protocol_logging.h 563 B

123456789101112131415161718192021
  1. // Copyright 2012 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_PROTOCOL_LOGGING_H_
  5. #define IOS_NET_HTTP_PROTOCOL_LOGGING_H_
  6. @class NSURLRequest;
  7. @class NSURLResponse;
  8. namespace net {
  9. // Logs the request in DVLOG(2).
  10. void LogNSURLRequest(NSURLRequest* request);
  11. // Logs the response headers in DVLOG(2).
  12. void LogNSURLResponse(NSURLResponse* response);
  13. } // namespace http_protocol_logging
  14. #endif // IOS_NET_HTTP_PROTOCOL_LOGGING_H_