![]() |
ObjectiveC SDK
1.0
|
00001 // 00002 // TkomHttpRequest.h 00003 // common 00004 00005 /* 00006 * This file is part of the Telekom Objective C SDK 00007 * Copyright 2011 Deutsche Telekom AG 00008 * 00009 * Licensed under the Apache License, Version 2.0 (the "License"); 00010 * you may not use this file except in compliance with the License. 00011 * You may obtain a copy of the License at 00012 * 00013 * http://www.apache.org/licenses/LICENSE-2.0 00014 * 00015 * Unless required by applicable law or agreed to in writing, software 00016 * distributed under the License is distributed on an "AS IS" BASIS, 00017 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00018 * See the License for the specific language governing permissions and 00019 * limitations under the License. 00020 */ 00021 00023 00029 #import <Foundation/Foundation.h> 00030 00031 00032 @interface TkomHttpRequest : NSMutableURLRequest { 00033 00034 NSString *myBoundary; 00035 NSMutableData *myData; 00036 NSString *contentType; 00037 } 00038 @property(nonatomic, retain) NSString* myBoundary; // defines a standard boundary 00039 @property(nonatomic, retain) NSMutableURLRequest* myRequest; 00040 @property(nonatomic, retain) NSMutableData* myData; // the HTTP request data 00041 00042 00048 -(TkomHttpRequest*) initWithUrl: (NSURL*) myUrl; 00049 00050 00057 -(void) setValueForKey:(NSString*) myValue withKey:(NSString*) myKey; 00058 00059 00067 -(void) setValueForDataString:(NSData*) myDataStringValue withKey:(NSString*) myDataStringKey withFilename: (NSString*) myDataFilename; 00068 00069 00074 -(void) setHTTPBody; 00075 00076 00080 -(void) setBoundary; 00081 00082 @end
1.7.5