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

#import "FSConnection.h"

@interface FSHTTPConnection : FSConnection

@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
