Instance Methodasync-http-client 1.25.2AsyncHTTPClient
write(_:)
Write data to server.
func write(_ data: IOData) -> EventLoopFuture<Void>
Parameters
- data
IOData
to write.
Write data to server.
func write(_ data: IOData) -> EventLoopFuture<Void>
s15AsyncHTTPClient0B0C4BodyV12StreamWriterV5writey7NIOCore15EventLoopFutureCyytGAI6IODataOF
What are these?7ALZG
IOData
to write.
import AsyncHTTPClient
This package provides simple HTTP Client library built on top of SwiftNIO.
struct StreamWriter
A streaming uploader.
class HTTPClient
HTTPClient class provides API for request execution.
struct Body
A request body.
enum IOData
IOData
unifies standard SwiftNIO types that are raw bytes of data; currently ByteBuffer
and FileRegion
.
final class EventLoopFuture<Value>
Holder for a result that will be provided later.
typealias Void = ()
The return type of functions that don’t explicitly specify a return type, that is, an empty tuple ()
.
init(closure: @escaping (IOData) -> EventLoopFuture<Void>)
Create new StreamWriter