receiveEndAndVerify(deadline:_:)

    Waits for a message part to be received and checks that it was a .end before passing it to the verify block.

    NIOHTTP1TestServer.swift:426
    func receiveEndAndVerify(deadline: NIODeadline = .now() + .seconds(10), _ verify: (HTTPHeaders?) throws -> Void = { _ in }) throws

    Parameters

    deadline

    The deadline by which a part must have been received.

    verify

    A closure which can be used to verify the contents of the HTTPHeaders?.

    Throws

    If the part was not a .end or nothing was read before the deadline.

    Other members in extension

    Type members

    Instance members