JSONEncoding

public struct JSONEncoding: Encoding

Definition for JSON encoded requests

  • Default JSONEncoding for Task

    Declaration

    Swift

    public static var `default`: JSONEncoding
  • Add parameters on http body

    Declaration

    Swift

    public func encode(request: URLRequest, with parameters: Parameters) -> URLRequest