forked from probablycorey/seriously
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Seriously.h
36 lines (30 loc) · 1.48 KB
/
Seriously.h
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
//
// Seriously.h
// Prototype
//
// Created by Corey Johnson on 6/18/10.
// Copyright 2010 Probably Interactive. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "SeriouslyConstants.h"
@interface Seriously : NSObject {
}
+ (SeriouslyOperation *)request:(NSMutableURLRequest *)request options:(NSDictionary *)options handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)requestURL:(id)url options:(NSDictionary *)options handler:(SeriouslyHandler)handler;
+ (NSMutableDictionary *)options;
+ (NSOperationQueue *)operationQueue;
+ (SeriouslyOperation *)get:(id)url handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)get:(id)url options:(NSDictionary *)options handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)post:(id)url handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)post:(id)url options:(NSDictionary *)userOptions handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)put:(id)url handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)put:(id)url options:(NSDictionary *)userOptions handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)delete:(id)url handler:(SeriouslyHandler)handler;
+ (SeriouslyOperation *)delete:(id)url options:(NSDictionary *)userOptions handler:(SeriouslyHandler)handler;
// Utility Methods
// ---------------
+ (NSURL *)url:(id)url params:(id)params;
+ (NSString *)formatQueryParams:(id)params;
+ (NSString *)escapeQueryParam:(id)param;
+ (NSData *)buildURLEncodedPostBodyWithKeys:(NSDictionary *)keys;
@end