MultipartMessageHeader.h 1.0 KB

123456789101112131415161718192021222324252627282930313233
  1. //
  2. // MultipartMessagePart.h
  3. // HttpServer
  4. //
  5. // Created by Валерий Гаврилов on 29.03.12.
  6. // Copyright (c) 2012 LLC "Online Publishing Partners" (onlinepp.ru). All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. //-----------------------------------------------------------------
  10. // interface MultipartMessageHeader
  11. //-----------------------------------------------------------------
  12. enum {
  13. contentTransferEncoding_unknown,
  14. contentTransferEncoding_7bit,
  15. contentTransferEncoding_8bit,
  16. contentTransferEncoding_binary,
  17. contentTransferEncoding_base64,
  18. contentTransferEncoding_quotedPrintable,
  19. };
  20. @interface MultipartMessageHeader : NSObject {
  21. NSMutableDictionary* fields;
  22. int encoding;
  23. NSString* contentDispositionName;
  24. }
  25. @property (strong,readonly) NSDictionary* fields;
  26. @property (readonly) int encoding;
  27. - (id) initWithData:(NSData*) data formEncoding:(NSStringEncoding) encoding;
  28. @end