Instance Methodasync-http-client 1.25.2AsyncHTTPClient
makeAsyncIterator
HTTPClientResponse.swift:95- iOS
- 13.0+
- macOS
- 10.15+
- tvOS
- 13.0+
- watchOS
- 6.0+
func makeAsyncIterator() -> AsyncIterator
func makeAsyncIterator() -> AsyncIterator
s15AsyncHTTPClient0B8ResponseV4BodyV04makeA8IteratorAE0aF0VyF
What are these?3LZQ6
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct Body
A representation of the response body for an HTTP response.
struct HTTPClientResponse
A representation of an HTTP response for the Swift Concurrency HTTPClient API.
struct AsyncIterator
init()
static func bytes(_ byteBuffer: ByteBuffer) -> HTTPClientResponse.Body
static func stream<SequenceOfBytes>(_ sequenceOfBytes: SequenceOfBytes) -> HTTPClientResponse.Body where SequenceOfBytes : Sendable, SequenceOfBytes : AsyncSequence, SequenceOfBytes.Element == ByteBuffer
func collect(upTo maxBytes: Int) async throws -> ByteBuffer
Accumulates Body
of ByteBuffer
s into a single ByteBuffer
.
typealias Element = ByteBuffer