34 lines
1.0 KiB
Objective-C
34 lines
1.0 KiB
Objective-C
//
|
|
// MultipartMessagePart.h
|
|
// HttpServer
|
|
//
|
|
// Created by Валерий Гаврилов on 29.03.12.
|
|
// Copyright (c) 2012 LLC "Online Publishing Partners" (onlinepp.ru). All rights reserved.
|
|
//
|
|
|
|
#import <Foundation/Foundation.h>
|
|
|
|
|
|
//-----------------------------------------------------------------
|
|
// interface MultipartMessageHeader
|
|
//-----------------------------------------------------------------
|
|
enum {
|
|
contentTransferEncoding_unknown,
|
|
contentTransferEncoding_7bit,
|
|
contentTransferEncoding_8bit,
|
|
contentTransferEncoding_binary,
|
|
contentTransferEncoding_base64,
|
|
contentTransferEncoding_quotedPrintable,
|
|
};
|
|
|
|
@interface MultipartMessageHeader : NSObject {
|
|
NSMutableDictionary* fields;
|
|
int encoding;
|
|
NSString* contentDispositionName;
|
|
}
|
|
@property (strong,readonly) NSDictionary* fields;
|
|
@property (readonly) int encoding;
|
|
|
|
- (id) initWithData:(NSData*) data formEncoding:(NSStringEncoding) encoding;
|
|
@end
|