2015-02-01 04:26:47 -05:00
|
|
|
//
|
|
|
|
|
// HttpRequest.h
|
2015-05-12 21:48:30 -04:00
|
|
|
// Moonlight
|
2015-02-01 04:26:47 -05:00
|
|
|
//
|
|
|
|
|
// Created by Diego Waxemberg on 2/1/15.
|
2015-05-12 21:48:30 -04:00
|
|
|
// Copyright (c) 2015 Moonlight Stream. All rights reserved.
|
2015-02-01 04:26:47 -05:00
|
|
|
//
|
|
|
|
|
|
|
|
|
|
#import "HttpResponse.h"
|
|
|
|
|
|
|
|
|
|
@interface HttpRequest : NSObject
|
|
|
|
|
|
|
|
|
|
@property (nonatomic) id<Response> response;
|
|
|
|
|
@property (nonatomic) NSURLRequest* request;
|
2015-07-08 23:03:23 -07:00
|
|
|
@property (nonatomic) int fallbackError;
|
|
|
|
|
@property (nonatomic) NSURLRequest* fallbackRequest;
|
2015-02-01 04:26:47 -05:00
|
|
|
|
2015-07-08 23:03:23 -07:00
|
|
|
+ (instancetype) requestForResponse:(id<Response>)response withUrlRequest:(NSURLRequest*)req fallbackError:(int)error fallbackRequest:(NSURLRequest*) fallbackReq;
|
2015-02-01 04:26:47 -05:00
|
|
|
+ (instancetype) requestForResponse:(id<Response>)response withUrlRequest:(NSURLRequest*)req;
|
|
|
|
|
+ (instancetype) requestWithUrlRequest:(NSURLRequest*)req;
|
|
|
|
|
|
|
|
|
|
@end
|