Vapor Documentation

Structure Client​Request

public struct ClientRequest  

Initializers

init(method:​url:​headers:​body:​byte​Buffer​Allocator:​)

public init(
        method: HTTPMethod = .GET,
        url: URI = "/",
        headers: HTTPHeaders = [:],
        body: ByteBuffer? = nil,
        byteBufferAllocator: ByteBufferAllocator = ByteBufferAllocator()
    )  

Properties

method

public var method: HTTPMethod

url

public var url: URI

headers

public var headers: HTTPHeaders

body

public var body: ByteBuffer? 

query

public var query: URLQueryContainer  

content

public var content: ContentContainer