Bez popisu

AWSURLRequestSerialization.h 1.7KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. //
  2. // Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  3. //
  4. // Licensed under the Apache License, Version 2.0 (the "License").
  5. // You may not use this file except in compliance with the License.
  6. // A copy of the License is located at
  7. //
  8. // http://aws.amazon.com/apache2.0
  9. //
  10. // or in the "license" file accompanying this file. This file is distributed
  11. // on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  12. // express or implied. See the License for the specific language governing
  13. // permissions and limitations under the License.
  14. //
  15. #import <Foundation/Foundation.h>
  16. #import "AWSNetworking.h"
  17. #import "AWSSerialization.h"
  18. @interface AWSJSONRequestSerializer : NSObject <AWSURLRequestSerializer>
  19. - (instancetype)initWithJSONDefinition:(NSDictionary *)JSONDefinition
  20. actionName:(NSString *)actionName;
  21. @end
  22. @interface AWSXMLRequestSerializer : NSObject <AWSURLRequestSerializer>
  23. - (instancetype)initWithJSONDefinition:(NSDictionary *)JSONDefinition
  24. actionName:(NSString *)actionName;
  25. + (BOOL)constructURIandHeadersAndBody:(NSMutableURLRequest *)request
  26. rules:(AWSJSONDictionary *)rules
  27. parameters:(NSDictionary *)params
  28. uriSchema:(NSString *)uriSchema
  29. error:(NSError *__autoreleasing *)error;
  30. @end
  31. @interface AWSQueryStringRequestSerializer : NSObject <AWSURLRequestSerializer>
  32. - (instancetype)initWithJSONDefinition:(NSDictionary *)JSONDefinition
  33. actionName:(NSString *)actionName;
  34. @property (nonatomic, strong) NSDictionary *additionalParameters;
  35. @end