URLRequest
extension URLRequest
                - 
                  
                  
PowerUpSwift: Sets the HTTP method using PowerUpSwift’s
HTTPMethodenum to help developer avoid mispelled Strings.Declaration
Swift
public mutating func setMethod(_ method: HTTPMethod) - 
                  
                  
PowerUpSwift: Sets the HTTP body by accepting a
Dictionary.Declaration
Swift
public mutating func setBody(_ json: [String : Any]) - 
                  
                  
PowerUpSwift: Sets the HTTP body by accepting an object which has a
Typethat conforms toEncodable.Declaration
Swift
public mutating func setBody<E>(encodable: E) throws where E : Encodable - 
                  
                  
PowerUpSwift: A wrapper to set all the HTTP Headers at once.
Declaration
Swift
public mutating func setHeaders(_ headers: [String : String]) - 
                  
                  
PowerUpSwift: A wrapper to set the header fields intuitively.
Declaration
Swift
public mutating func addHeader(_ key: String, _ value: String)Parameters
keyString
valueString
 
        URLRequest Extension Reference