Skip to content
This repository was archived by the owner on Jan 21, 2022. It is now read-only.

Allow non dictionary request body #291

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ @interface MASRequest ()
@property (nonatomic, readwrite) NSString *httpMethod;
@property (nonatomic, readwrite) NSData *privateKey;
@property (nonatomic, readwrite) NSDictionary *header;
@property (nonatomic, readwrite) NSDictionary *body;
@property (nonatomic, readwrite) id body;
@property (nonatomic, readwrite) NSDictionary *query;
@property (assign, readwrite) BOOL isPublic;
@property (assign, readwrite) BOOL sign;
Expand Down
4 changes: 2 additions & 2 deletions MASFoundation/Classes/models/Network/MASRequest.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@


/**
NSDictionary of type/value parameters to put into the body of a request.
Object to put into the body of a request.
*/
@property (nonatomic, strong, nullable, readonly) NSDictionary *body;
@property (nonatomic, strong, nullable, readonly) id body;


/**
Expand Down
2 changes: 1 addition & 1 deletion MASFoundation/Classes/models/Network/MASRequest.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ @interface MASRequest ()
@property (nonatomic, readwrite) NSString *httpMethod;
@property (nonatomic, readwrite) NSData *privateKey;
@property (nonatomic, readwrite) NSDictionary *header;
@property (nonatomic, readwrite) NSDictionary *body;
@property (nonatomic, readwrite) id body;
@property (nonatomic, readwrite) NSDictionary *query;
@property (assign, readwrite) BOOL isPublic;
@property (assign, readwrite) BOOL sign;
Expand Down
4 changes: 2 additions & 2 deletions MASFoundation/Classes/models/Network/MASRequestBuilder.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@


/**
NSDictionary of type/value parameters to put into the body of a request.
Object to put into the body of a request.
*/
@property (nonatomic, strong, nullable) NSDictionary *body;
@property (nonatomic, strong, nullable) id body;


/**
Expand Down