0001    // CaseInsensitiveKey.swift
0002    //
0003    // The MIT License (MIT)
0004    //
0005    // Copyright (c) 2015 Zewo
0006    //
0007    // Permission is hereby granted, free of charge, to any person obtaining a copy
0008    // of this software and associated documentation files (the "Software"), to deal
0009    // in the Software without restriction, including without limitation the rights
0010    // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0011    // copies of the Software, and to permit persons to whom the Software is
0012    // furnished to do so, subject to the following conditions:
0013    //
0014    // The above copyright notice and this permission notice shall be included in all
0015    // copies or substantial portions of the Software.
0016    //
0017    // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0018    // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0019    // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0020    // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0021    // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0022    // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0023    // SOFTWARE.
0024    
0025    public struct CaseInsensitiveKey
CaseInsensitiveKey.swift:33
extension CaseInsensitiveKey: Hashable {
CaseInsensitiveKey.swift:39
public func ==(lhs: CaseInsensitiveKey, rhs: CaseInsensitiveKey) -> Bool {
CaseInsensitiveKey.swift:39
public func ==(lhs: CaseInsensitiveKey, rhs: CaseInsensitiveKey) -> Bool {
CaseInsensitiveKey.swift:43
extension CaseInsensitiveKey: StringLiteralConvertible {
CaseInsensitiveKey.swift:57
extension CaseInsensitiveKey: CustomStringConvertible {
Cookie.swift:51
    init(name: String, value: String, attributes: [CaseInsensitiveKey: String]) {
Cookie.swift:144
        var attributes: [CaseInsensitiveKey: String] = [:]
MessageType.swift:29
public typealias HeaderName = CaseInsensitiveKey
{ 0026 public let name
CaseInsensitiveKey.swift:29
        self.name = name
CaseInsensitiveKey.swift:35
        return name.lowercaseString.hashValue
CaseInsensitiveKey.swift:40
    return lhs.name.lowercaseString == rhs.name.lowercaseString
CaseInsensitiveKey.swift:40
    return lhs.name.lowercaseString == rhs.name.lowercaseString
CaseInsensitiveKey.swift:59
        return name
: String 0027 0028 public init
CaseInsensitiveKey.swift:45
        self.init(string)
CaseInsensitiveKey.swift:49
        self.init(string)
CaseInsensitiveKey.swift:53
        self.init(string)
RequestParser.swift:162
            let headerName = HeaderName(headerField)
ResponseParser.swift:164
            let headerName = HeaderName(headerField)
(_ name: String) { 0029 self.name = name 0030 } 0031 } 0032 0033 extension CaseInsensitiveKey: Hashable { 0034 public var hashValue: Int { 0035 return name.lowercaseString.hashValue 0036 } 0037 } 0038 0039 public func ==(lhs: CaseInsensitiveKey, rhs: CaseInsensitiveKey) -> Bool { 0040 return lhs.name.lowercaseString == rhs.name.lowercaseString 0041 } 0042 0043 extension CaseInsensitiveKey: StringLiteralConvertible { 0044 public init(stringLiteral string: String) { 0045 self.init(string) 0046 } 0047 0048 public init(extendedGraphemeClusterLiteral string: String){ 0049 self.init(string) 0050 } 0051 0052 public init(unicodeScalarLiteral string: String){ 0053 self.init(string) 0054 } 0055 } 0056 0057 extension CaseInsensitiveKey: CustomStringConvertible { 0058 public var description: String { 0059 return name 0060 } 0061 }