Vapor Documentation Beta

Structure Request.​Body

public struct Body: CustomStringConvertible
%3 Request.Body Request.Body CustomStringConvertible CustomStringConvertible Request.Body->CustomStringConvertible

Member Of

Request

Conforms To

CustomStringConvertible

Properties

data

var data: ByteBuffer?

string

var string: String?

description

var description: String

Methods

drain(_:​)

public func drain(_ handler: @escaping (BodyStreamResult) -> EventLoopFuture<Void>)

collect(max:​)

public func collect(max: Int? = 1 << 14) -> EventLoopFuture<ByteBuffer?>