//
//  FSHTTPConnection.h
//  Sync
//
//  Created by Martin Hering on 20.12.12.
//  Copyright (c) 2012 Stefan. All rights reserved.
//

#import "SKConnection.h"

@interface SKHTTPConnection : SKConnection

@property BOOL allowsCellularAccess;

- (NSString*) httpUsername;
- (NSString*) httpPassword;

- (NSData*) sendSynchronousRequest:(NSMutableURLRequest*)request returningResponse:(__autoreleasing NSURLResponse**)outResponse error:(__autoreleasing NSError**)outError;
- (BOOL) sendSynchronousRequest:(NSMutableURLRequest*)request writeContentsToFile:(NSString*)filePath appending:(BOOL)appending returningResponse:(__autoreleasing NSURLResponse**)outResponse error:(__autoreleasing NSError**)outError;
@end
