HttpRequest
class HttpRequest(val method: HttpMethod = GET, val protocol: HttpProtocol = HTTP, val host: String = "localhost", val port: Int = 80, val path: String = "", val queryParameters: Parameters = Parameters(), val headers: Headers = Headers(), val body: Any = "", val parts: List<HttpPart> = emptyList(), val formParameters: Parameters = Parameters(), val cookies: List<Cookie> = emptyList(), val contentType: ContentType? = null, val certificateChain: List<X509Certificate> = emptyList(), val accept: List<ContentType> = emptyList(), val contentLength: Long = -1L, val authorization: Authorization? = null, val pathPattern: PathPattern? = null, val pathParameters: Map<String, Any> = emptyMap()) : HttpRequestPort
Constructors
Link copied to clipboard
constructor(method: HttpMethod = GET, protocol: HttpProtocol = HTTP, host: String = "localhost", port: Int = 80, path: String = "", queryParameters: Parameters = Parameters(), headers: Headers = Headers(), body: Any = "", parts: List<HttpPart> = emptyList(), formParameters: Parameters = Parameters(), cookies: List<Cookie> = emptyList(), contentType: ContentType? = null, certificateChain: List<X509Certificate> = emptyList(), accept: List<ContentType> = emptyList(), contentLength: Long = -1L, authorization: Authorization? = null, pathPattern: PathPattern? = null, pathParameters: Map<String, Any> = emptyMap())
constructor(pathPattern: PathPattern, pathParameters: Map<String, Any>, method: HttpMethod = GET, protocol: HttpProtocol = HTTP, host: String = "localhost", port: Int = 80, queryParameters: Parameters = Parameters(), headers: Headers = Headers(), body: Any = "", parts: List<HttpPart> = emptyList(), formParameters: Parameters = Parameters(), cookies: List<Cookie> = emptyList(), contentType: ContentType? = null, certificateChain: List<X509Certificate> = emptyList(), accept: List<ContentType> = emptyList(), contentLength: Long = -1L, authorization: Authorization? = null)
Properties
Functions
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun with(body: Any = this.body, headers: Headers = this.headers, contentType: ContentType? = this.contentType, method: HttpMethod = this.method, protocol: HttpProtocol = this.protocol, host: String = this.host, port: Int = this.port, path: String = this.path, queryParameters: Parameters = this.queryParameters, parts: List<HttpPart> = this.parts, formParameters: Parameters = this.formParameters, cookies: List<Cookie> = this.cookies, accept: List<ContentType> = this.accept, authorization: Authorization? = this.authorization, certificateChain: List<X509Certificate> = this.certificateChain, pathPattern: PathPattern? = this.pathPattern, pathParameters: Map<String, Any> = this.pathParameters): HttpRequestPort