Source/HTTPRiot/HRGlobal.h File Reference

#import <Foundation/Foundation.h>

Go to the source code of this file.


Defines

#define HTTPRiotErrorDomain   @"com.labratrevenge.HTTPRiot.ErrorDomain"
 HTTPRiot's error domain.
#define HRLOG
 Logging Helper.

Enumerations

enum  HRRequestMethod {
  HRRequestMethodUnknown = -1, HRRequestMethodGet, HRRequestMethodPost, HRRequestMethodPut,
  HRRequestMethodDelete
}
enum  HRDataFormat { HRDataFormatUnknown = -1, HRDataFormatJSON, HRDataFormatXML }

Variables

NSString * kHRClassAttributesDelegateKey
 Key for delgate.
NSString * kHRClassAttributesBaseURLKey
 Key for base url.
NSString * kHRClassAttributesHeadersKey
 Key for headers.
NSString * kHRClassAttributesBasicAuthKey
 Key for basic auth.
NSString * kHRClassAttributesUsernameKey
 Key for username.
NSString * kHRClassAttributesPasswordKey
 Key for password.
NSString * kHRClassAttributesFormatKey
 Key for format.
NSString * kHRClassAttributesDefaultParamsKey
 Key for default params.
NSString * kHRClassAttributesParamsKey
 Key for params.
NSString * kHRClassAttributesBodyKey
 Key for body.

Detailed Description

Shared types and constants.

Enumeration Type Documentation

Supported formats.

See also:
HRRestModel::setFormat
Enumerator:
HRDataFormatUnknown  Unknown [NOT USED].
HRDataFormatJSON  JSON Format.
HRDataFormatXML  XML Format.

Supported REST methods.

See also:
HRRequestOperation
Enumerator:
HRRequestMethodUnknown  Unknown [NOT USED].
HRRequestMethodGet  GET.
HRRequestMethodPost  POST.
HRRequestMethodPut  PUT.
HRRequestMethodDelete  DELETE.