HttpResponse

public struct HttpResponse
extension HttpResponse: Sendable
extension HttpResponse: Equatable, Hashable

An HttpResponse used for pki hooks

  • http status code

    Declaration

    Swift

    public var status: UInt16
  • List of header fields

    Declaration

    Swift

    public var headers: [HttpHeader]
  • http body

    Declaration

    Swift

    public var body: Data
  • Undocumented

    Declaration

    Swift

    public init(
        /**
         * http status code
         */status: UInt16, 
        /**
         * List of header fields
         */headers: [HttpHeader], 
        /**
         * http body
         */body: Data)
  • Declaration

    Swift

    public static func == (lhs: HttpResponse, rhs: HttpResponse) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)