Debug options of ASIHTTPRequest for iOS development

Source: Internet
Author: User

ASIHTTPRequest provides a small number of macro tags that help debug request behavior. These macros can be found in the ASIHTTPRequestConfig. h file.

When these flags are opened, the request will print some information to the console to show what they are doing.

DEBUG_REQUEST_STATUS

Print all information about the request lifecycle, start, end upload, and end download.

DEBUG_THROTTLING

Print the total traffic used by the request). If the request traffic is controlled, print how it is controlled. When used with DEBUG_REQUEST_STATUS, this item can be used for debugging "timeout". You can see the time when the request stops sending or receiving data.

DEBUG_PERSISTENT_CONNECTIONS

Print the request to reuse the persistent connection information. If you see the following information:

Request attempted to use connection #1, but it has been closed-will retry with a new connection

This indicates that the persistentConnectionTimeoutSeconds you set is too large.

DEBUG_HTTP_AUTHENTICATION

New Features of version 1.8.1: enabling this option will print information about how the request processes HTTP Authorization Basic, Digest, or NTLM.

DEBUG_FORM_DATA_REQUEST

Print the entire request body that ASIFormDataRequest will send. This item is useful when you use ASIFormDataRequest.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.