FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
IRWebAPIKit/IRWebAPIEngine.h at develop · iridia/IRWebAPIKit · GitHub
iridia
IRWebAPIKit
Repository navigation
Code
Issues
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
IRWebAPIKit
/
IRWebAPIEngine.h
Copy path
More file actions
More file actions
Latest commit
History
History
History
58 lines (35 loc) · 2.42 KB
Breadcrumbs
IRWebAPIKit
/
IRWebAPIEngine.h
Copy path
File metadata and controls
58 lines (35 loc) · 2.42 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
//
IRWebAPIEngine.h
//
IRWebAPIKit
//
//
Created by Evadne Wu on 11/19/10.
//
Copyright 2010 Iridia Productions. All rights reserved.
//
#
import
<
Foundation/Foundation.h
>
#
import
"
IRWebAPIKit.h
"
extern
NSString
*
const
kIRWebAPIEngineResponseDictionaryIncomingData
;
extern
NSString
*
const
kIRWebAPIEngineResponseDictionaryOutgoingContext
;
extern
NSString
*
const
kIRWebAPIEngineAssociatedDataStore
;
extern
NSString
*
const
kIRWebAPIEngineAssociatedResponseContext
;
extern
NSString
*
const
kIRWebAPIEngineAssociatedSuccessHandler
;
extern
NSString
*
const
kIRWebAPIEngineAssociatedFailureHandler
;
extern
NSString
*
const
kIRWebAPIEngineUnderlyingError
;
@interface
IRWebAPIEngine
:
NSObject
@property
(
nonatomic
,
readwrite
,
copy
) IRWebAPIResponseParser parser;
@property
(
nonatomic
,
readonly
,
retain
) IRWebAPIContext *context;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableArray
*globalRequestPreTransformers;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableDictionary
*requestTransformers;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableArray
*globalRequestPostTransformers;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableArray
*globalResponsePreTransformers;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableDictionary
*responseTransformers;
@property
(
nonatomic
,
readonly
,
retain
)
NSMutableArray
*globalResponsePostTransformers;
- (
id
)
initWithContext
:
(IRWebAPIContext *)
inContext
;
- (
void
)
fireAPIRequestNamed
:
(
NSString
*)
inMethodName
withArguments
:
(
NSDictionary
*)
inArgumentsOrNil
options
:
(
NSDictionary
*)
inOptionsOrNil
validator
:
(IRWebAPIResposeValidator)
inValidator
successHandler
:
(IRWebAPICallback)
inSuccessHandler
failureHandler
:
(IRWebAPICallback)
inFailureHandler
;
- (
NSMutableArray
*)
requestTransformersForMethodNamed
:
(
NSString
*)
inMethodName
;
- (
NSMutableArray
*)
responseTransformersForMethodNamed
:
(
NSString
*)
inMethodName
;
//
Convenience. Putting them in a category does not assure compiler checking.
- (
void
)
fireAPIRequestNamed
:
(
NSString
*)
inMethodName
withArguments
:
(
NSDictionary
*)
inArgumentsOrNil
successHandler
:
(IRWebAPICallback)
inSuccessHandler
failureHandler
:
(IRWebAPICallback)
inFailureHandler
;
- (
void
)
fireAPIRequestNamed
:
(
NSString
*)
inMethodName
withArguments
:
(
NSDictionary
*)
inArgumentsOrNil
options
:
(
NSDictionary
*)
inOptionsOrNil
successHandler
:
(IRWebAPICallback)
inSuccessHandler
failureHandler
:
(IRWebAPICallback)
inFailureHandler
;
@end
#
import
"
IRWebAPIEngine+LocalCaching.h
"
#
import
"
IRWebAPIEngine+FormMultipart.h
"
Back
|
FazBrowse Home
|
New Git URL