AgsHttpRequest

public class AgsHttpRequest : NSObject, AgsHttpRequestProtocol

This is a implementation of HttpRequest based on AlamoFire Implementation is designed to work with Json payload

  • Undocumented

    Declaration

    Swift

    public func get(_ url: String, params: [String: AnyObject]? = [:], headers: [String: String]? = [:],
                    _ handler: @escaping (AgsHttpResponse) -> Void)
  • Undocumented

    Declaration

    Swift

    public func post(_ url: String, body: [String: Any]? = [:], headers: [String: String]? = [:], _ handler: @escaping (AgsHttpResponse) -> Void)
  • Undocumented

    Declaration

    Swift

    public func put(_ url: String, body: [String: Any]? = [:], headers: [String: String]? = [:], _ handler: @escaping (AgsHttpResponse) -> Void)
  • Undocumented

    Declaration

    Swift

    public func delete(_ url: String, headers: [String: String]? = [:], _ handler: @escaping (AgsHttpResponse) -> Void)