OhttpTestServer
open class OhttpTestServer:
OhttpTestServerProtocol
A testing interface for decrypting and responding to OHTTP messages. This should only be used for testing.
-
Declaration
Swift
required public init(unsafeFromRawPointer pointer: UnsafeMutableRawPointer)
-
Declaration
Swift
public convenience init()
-
Return the unique encryption key config for this instance of test server.
Declaration
Swift
open func getConfig() -> [UInt8]
-
Declaration
Swift
open func receive(message: [UInt8]) throws -> TestServerRequest
-
Declaration
Swift
open func respond(response: OhttpResponse) throws -> [UInt8]