ASIHTTPRequestConfig.h 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. //
  2. // ASIHTTPRequestConfig.h
  3. // Part of ASIHTTPRequest -> http://allseeing-i.com/ASIHTTPRequest
  4. //
  5. // Created by Ben Copsey on 14/12/2009.
  6. // Copyright 2009 All-Seeing Interactive. All rights reserved.
  7. //
  8. // ======
  9. // Debug output configuration options
  10. // ======
  11. // If defined will use the specified function for debug logging
  12. // Otherwise use NSLog
  13. #ifndef ASI_DEBUG_LOG
  14. #define ASI_DEBUG_LOG NSLog
  15. #endif
  16. // When set to 1 ASIHTTPRequests will print information about what a request is doing
  17. #ifndef DEBUG_REQUEST_STATUS
  18. #define DEBUG_REQUEST_STATUS 0
  19. #endif
  20. // When set to 1, ASIFormDataRequests will print information about the request body to the console
  21. #ifndef DEBUG_FORM_DATA_REQUEST
  22. #define DEBUG_FORM_DATA_REQUEST 0
  23. #endif
  24. // When set to 1, ASIHTTPRequests will print information about bandwidth throttling to the console
  25. #ifndef DEBUG_THROTTLING
  26. #define DEBUG_THROTTLING 0
  27. #endif
  28. // When set to 1, ASIHTTPRequests will print information about persistent connections to the console
  29. #ifndef DEBUG_PERSISTENT_CONNECTIONS
  30. #define DEBUG_PERSISTENT_CONNECTIONS 0
  31. #endif
  32. // When set to 1, ASIHTTPRequests will print information about HTTP authentication (Basic, Digest or NTLM) to the console
  33. #ifndef DEBUG_HTTP_AUTHENTICATION
  34. #define DEBUG_HTTP_AUTHENTICATION 0
  35. #endif