This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Foundation | |
import HTTP | |
extension HTTPMethod: RawRepresentable { | |
// swiftlint:disable:next cyclomatic_complexity function_body_length | |
public init?(rawValue: String) { | |
switch rawValue.uppercased() { | |
case "GET": | |
self = .GET |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// JSON.swift | |
// | |
// Created by Valerio Mazzeo on 26/03/2018. | |
// | |
import Foundation | |
public enum JSON { | |
case object(JSON.Object) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
Relates to https://github.com/SwiftyBeaver/SwiftyBeaver/issues/340 | |
*/ | |
extension SwiftyBeaver { | |
@usableFromInline | |
static let queue = DispatchQueue(label: "com.asensei.asensei.SwiftyBeaver") | |
@discardableResult | |
class func ts_addDestination(_ destination: BaseDestination) -> Bool { |
OlderNewer