Vapor Documentation Beta

Structure Client​Request

public struct ClientRequest

Initializers

init(method:​url:​headers:​body:​)

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

Properties

method

var method: HTTPMethod

url

var url: URI

headers

var headers: HTTPHeaders

body

var body: ByteBuffer?

query

var query: URLQueryContainer

content

var content: ContentContainer