Skip to content

Commit

Permalink
fix: Apply PR suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderwe committed Jul 26, 2022
1 parent cccac11 commit bde6940
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions Sources/Mock+DataType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,10 @@ extension Mock {
/// The types of content of a request. Will be used as Content-Type header inside a `Mock`.
public struct DataType {

/// Name of the data type
/// Name of the data type.
public let name: String


/// The header value of the data type
/// The header value of the data type.
public let headerValue: String

public init(name: String, headerValue: String) {
Expand All @@ -27,10 +26,10 @@ extension Mock {
}

extension Mock.DataType {
public static var json = Mock.DataType(name: "json", headerValue: "application/json; charset=utf-8")
public static var html = Mock.DataType(name: "html", headerValue: "text/html; charset=utf-8")
public static var imagePNG = Mock.DataType(name: "imagePNG",headerValue: "image/png")
public static var pdf = Mock.DataType(name: "pdf",headerValue: "application/pdf")
public static var mp4 = Mock.DataType(name: "mp4",headerValue: "video/mp4")
public static var zip = Mock.DataType(name: "zip",headerValue: "application/zip")
public static let json = Mock.DataType(name: "json", headerValue: "application/json; charset=utf-8")
public static let html = Mock.DataType(name: "html", headerValue: "text/html; charset=utf-8")
public static let imagePNG = Mock.DataType(name: "imagePNG", headerValue: "image/png")
public static let pdf = Mock.DataType(name: "pdf", headerValue: "application/pdf")
public static let mp4 = Mock.DataType(name: "mp4", headerValue: "video/mp4")
public static let zip = Mock.DataType(name: "zip", headerValue: "application/zip")
}

0 comments on commit bde6940

Please sign in to comment.