-
Chunk provider.
See moreDeclaration
Swift
public struct StreamWriter -
Body size. Request validation will be failed with
HTTPClientErrors.contentLengthMissingif nil, unlessTrasfer-Encoding: chunkedheader is set.Declaration
Swift
public var length: Int? -
Body chunk provider.
Declaration
Swift
public var stream: (StreamWriter) -> EventLoopFuture<Void> -
Create and stream body using
ByteBuffer.Declaration
Swift
public static func byteBuffer(_ buffer: ByteBuffer) -> BodyParameters
bufferBody
ByteBufferrepresentation. -
Create and stream body using
StreamWriter.Declaration
Swift
public static func stream(length: Int? = nil, _ stream: @escaping (StreamWriter) -> EventLoopFuture<Void>) -> BodyParameters
lengthBody size. Request validation will be failed with
HTTPClientErrors.contentLengthMissingif nil, unlessTransfer-Encoding: chunkedheader is set.streamBody chunk provider.
-
Create and stream body using
Data.Declaration
Swift
public static func data(_ data: Data) -> BodyParameters
dataBody
Datarepresentation. -
Create and stream body using
String.Declaration
Swift
public static func string(_ string: String) -> BodyParameters
stringBody
Stringrepresentation.
View on GitHub
Install in Dash
Body Structure Reference