URL

extension URL: URLConvertible
  • Returns self.

    Declaration

    Swift

    public func asURL() throws -> URL

URLRequest extension

  • The default mime type of a file if unable to determine it’s mime type.

    Declaration

    Swift

    public static let defaultBinaryMimeType: String
  • Determine mime type on the basis of extension of a file.

    Declaration

    Swift

    public var mimeType: String { get }

    Return Value

    Returns the mime type if successful. Returns application/octet-stream if unable to determine mime type.