Vapor Documentation

Structure Request.​Body

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

Member Of

Request

Represents an HTTP request in an application.

Conforms To

CustomStringConvertible

Properties

data

public var data: ByteBuffer?  

string

public var string: String?  

description

public var description: String  

Methods

drain(_:​)

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

collect(max:​)

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