public class TestApplicationRequest
Represents a test application request
| Constructor and Description |
|---|
TestApplicationRequest(TestApplicationCall call,
io.ktor.http.HttpMethod method,
java.lang.String uri,
java.lang.String version)
Represents a test application request
|
| Modifier and Type | Method and Description |
|---|---|
void |
addHeader(java.lang.String name,
java.lang.String value)
Add HTTP request header
|
kotlinx.coroutines.io.ByteReadChannel |
getBodyChannel()
Request body channel
|
io.ktor.request.RequestCookies |
getCookies() |
kotlin.coroutines.CoroutineContext |
getCoroutineContext() |
io.ktor.http.Headers |
getHeaders() |
io.ktor.http.RequestConnectionPoint |
getLocal() |
io.ktor.http.HttpMethod |
getMethod()
HTTP method to be sent or executed
|
java.lang.String |
getProtocol()
HTTP protocol to be used or was used
|
io.ktor.http.Parameters |
getQueryParameters() |
java.lang.String |
getUri()
HTTP url to sent request to or was sent to
|
java.lang.String |
getVersion()
HTTP version to sent or executed
|
kotlinx.coroutines.io.ByteReadChannel |
receiveChannel() |
void |
setBodyChannel(kotlinx.coroutines.io.ByteReadChannel p)
Request body channel
|
void |
setMethod(io.ktor.http.HttpMethod p)
HTTP method to be sent or executed
|
void |
setProtocol(java.lang.String p)
HTTP protocol to be used or was used
|
void |
setUri(java.lang.String p)
HTTP url to sent request to or was sent to
|
void |
setVersion(java.lang.String p)
HTTP version to sent or executed
|
public TestApplicationRequest(TestApplicationCall call, io.ktor.http.HttpMethod method, java.lang.String uri, java.lang.String version)
Represents a test application request
method - HTTP method to be sent or executeduri - HTTP url to sent request to or was sent toversion - HTTP version to sent or executedpublic java.lang.String getProtocol()
HTTP protocol to be used or was used
public void setProtocol(java.lang.String p)
HTTP protocol to be used or was used
public io.ktor.http.RequestConnectionPoint getLocal()
public kotlinx.coroutines.io.ByteReadChannel getBodyChannel()
Request body channel
public void setBodyChannel(kotlinx.coroutines.io.ByteReadChannel p)
Request body channel
public io.ktor.http.Parameters getQueryParameters()
public io.ktor.request.RequestCookies getCookies()
public void addHeader(java.lang.String name,
java.lang.String value)
Add HTTP request header
public io.ktor.http.Headers getHeaders()
public kotlinx.coroutines.io.ByteReadChannel receiveChannel()
public io.ktor.http.HttpMethod getMethod()
HTTP method to be sent or executed
public void setMethod(io.ktor.http.HttpMethod p)
HTTP method to be sent or executed
p - HTTP method to be sent or executedpublic java.lang.String getUri()
HTTP url to sent request to or was sent to
public void setUri(java.lang.String p)
HTTP url to sent request to or was sent to
p - HTTP url to sent request to or was sent topublic java.lang.String getVersion()
HTTP version to sent or executed
public void setVersion(java.lang.String p)
HTTP version to sent or executed
p - HTTP version to sent or executedpublic kotlin.coroutines.CoroutineContext getCoroutineContext()