Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
class MutableRequest(val connection: Request.Connection, var method: HttpMethod, params: Map<String, String>, queryParams: Map<String, String>, headers: Map<String, List<String>>, cookies: Map<String, String>, var body: ByteArray?, var contentType: String?) : Request
Link copied to clipboard
interface Request

Information passed into an API endpoint from the client.

Link copied to clipboard
class Response

Data to send back to the client after it makes a request to an API endpoint.

Properties

Link copied to clipboard

A convenience value you can use if you want to express intention that your body should be empty

Functions

Link copied to clipboard

Convenience method to pull body text out from a request.

Link copied to clipboard
fun Response.setAsRedirect(newPath: String, status: Int = 307, isApiPath: Boolean = false)

Set this to a response that tells the client that the requested resource has moved to a new location.

Link copied to clipboard

Convenience method for setting the body to a text value.