AWSAPIGatewayRequest
Objective-C
@interface AWSAPIGatewayRequest : NSObject
Swift
class AWSAPIGatewayRequest : NSObject
The request object for invoking an AWS API Gateway API.
-
Creates an instance of
AWSAPIGatewayRequestwhich is required to invoke an API using theinvokemethod.Declaration
Objective-C
- (nonnull instancetype) initWithHTTPMethod:(nonnull NSString *)HTTPMethod URLString:(NSString *_Nullable)URLString queryParameters:(NSDictionary *_Nullable)queryParameters headerParameters:(NSDictionary *_Nullable)headerParameters HTTPBody:(id _Nullable)HTTPBody;Swift
init(httpMethod HTTPMethod: String, urlString URLString: String?, queryParameters: [AnyHashable : Any]?, headerParameters: [AnyHashable : Any]?, httpBody HTTPBody: Any?)Parameters
HTTPMethodThe HTTP method to be invoked(E.g. : GET, PUT, POST, PATCH, UPDATE, DELETE, HEAD)
URLStringThe path to be invoked(E.g. : /cars)
queryParametersThe query string parameters for the invocation request
headerParametersThe header parameters for the request
HTTPBodyThe Http body for the request (Could be of type NSString, NSData, NSInputStream)
Return Value
An instance of
AWSAPIGateway
View on GitHub
Install in Dash
AWSAPIGatewayRequest Class Reference