ResourceKit-master(2).zip

  • Yoyoyoyoyo1
    了解作者
  • C/C++
    开发工具
  • 9KB
    文件大小
  • zip
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 0
    下载次数
  • 2020-12-12 08:26
    上传日期
Http library in objective c
ResourceKit-master(2).zip
  • ResourceKit-master
  • NSTimer+Blocks.m
    850B
  • NSString+Gsub.m
    827B
  • Entity.h
    202B
  • NSTimer+Blocks.h
    206B
  • Entity.m
    754B
  • Resource.h
    983B
  • HTTPFilter.m
    1.3KB
  • HTTPRequest.h
    551B
  • EntityFactory.h
    666B
  • EntityFactory.m
    2.7KB
  • Resource.m
    5.3KB
  • HTTPFilter.h
    407B
  • HTTPRequest.m
    4.8KB
  • NSString+Gsub.h
    180B
内容介绍
#import <Foundation/Foundation.h> #import "EntityFactory.h" typedef void (^block_t)(); typedef enum { ResourcePOSTFormatFormURLEncoded, ResourcePOSTFormatJSON, } ResourcePOSTFormat; @interface Resource : NSObject <NSCopying, NSCoding> - (id)initWithHref:(NSString *)href type:(NSString *)type baseURL:(NSURL *)baseURL; - (id)initWithDocument:(NSDictionary *)document baseURL:(NSURL *)baseURL; - (NSString *)href; - (NSString *)type; - (NSURL *)resolvedURL; - (Resource *)resourceWithParameterSubstitution:(NSString *(^)(NSString *parameterName))substitution; - (block_t)loadWithSuccess:(void (^)(id loadedObject))success failure:(void (^)(NSError *error))failure; - (block_t)loadWithSuccess:(void (^)(id loadedObject))success failure:(void (^)(NSError *error))failure policy:(NSURLRequestCachePolicy)policy; - (block_t)post:(NSDictionary *)dictionary format:(ResourcePOSTFormat)format success:(void (^)(id loadedObject))success failure:(void (^)(NSError *error))failure; @end
评论
    相关推荐