2022-12-04 01:41:32 +01:00
|
|
|
//
|
|
|
|
// String+Headers.swift
|
|
|
|
// APIService
|
|
|
|
//
|
|
|
|
// Created by Javier Cicchelli on 03/12/2022.
|
|
|
|
// Copyright © 2022 Röck+Cöde. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
extension String {
|
|
|
|
enum Header {
|
|
|
|
enum Keys {
|
|
|
|
static let authorization = "Authorization"
|
|
|
|
static let contentType = "Content-Type"
|
2022-12-04 03:28:29 +01:00
|
|
|
static let contentDisposition = "Content-Disposition"
|
2022-12-04 01:41:32 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
enum Values {
|
|
|
|
static let contentTypeJSON = "application/json"
|
2022-12-04 03:28:29 +01:00
|
|
|
static let contentTypeOctet = "application/octet-stream"
|
2022-12-04 01:41:32 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|