• Main Page
  • Classes
  • Files
  • File List
  • File Members

Source/HTTPRiot/HRGlobal.h

Go to the documentation of this file.
00001 
00004 #import <Foundation/Foundation.h>
00005 
00007 extern NSString *kHRClassAttributesDelegateKey;
00009 extern NSString *kHRClassAttributesBaseURLKey;
00011 extern NSString *kHRClassAttributesHeadersKey;
00013 extern NSString *kHRClassAttributesBasicAuthKey;
00015 extern NSString *kHRClassAttributesUsernameKey;
00017 extern NSString *kHRClassAttributesPasswordKey;
00019 extern NSString *kHRClassAttributesFormatKey;
00021 extern NSString *kHRClassAttributesDefaultParamsKey;
00023 extern NSString *kHRClassAttributesParamsKey;
00025 extern NSString *kHRClassAttributesBodyKey;
00026 
00027  
00032 typedef enum {
00034     HRRequestMethodUnknown = -1,
00036     HRRequestMethodGet,
00038     HRRequestMethodPost,
00040     HRRequestMethodPut,
00042     HRRequestMethodDelete
00043 } HRRequestMethod;
00044 
00049 typedef enum {
00051     HRDataFormatUnknown = -1,
00053     HRDataFormatJSON,
00055     HRDataFormatXML
00056 } HRDataFormat;
00057 
00059 #define HTTPRiotErrorDomain @"com.labratrevenge.HTTPRiot.ErrorDomain"
00060 
00061 #ifdef DEBUG
00063 #define HRLOG NSLog
00064 #else
00066 #define HRLOG    
00067 #endif
  • Copyright © 2009 Justin Palmer.
  • Source/Contribute
  • Blog
  • Help/Community