Skip to content

Instantly share code, notes, and snippets.

View ClumsySmurf's full-sized avatar

John Hamilton ClumsySmurf

  • Grand Rapids, Michigan
View GitHub Profile
// Public domain - https://gist.github.com/nolanw/dff7cc5d5570b030d6ba385698348b7c
import Foundation
extension URLRequest {
/**
Configures the URL request for `multipart/form-data`. The request's `httpBody` is set, and a value is set for the HTTP header field `Content-Type`.
- Parameter parameters: The form data to set.