http4k / org.http4k.core / HttpMessage
HttpMessage
interface HttpMessage :
Closeable
HttpMessages are designed to be immutable, so any mutation methods return a modified copy of the message.
Properties
Functions
Companion Object Properties
Extension Functions
Name |
Summary |
alphabetiseHeaders |
fun <T : HttpMessage > T.alphabetiseHeaders(): T |
multipartIterator |
fun HttpMessage .multipartIterator(): Iterator < MultipartEntity > |
shouldHaveBody |
infix fun HttpMessage .shouldHaveBody(expected: Matcher< Body >): Unit
infix fun HttpMessage .shouldHaveBody(expected: Matcher< String ?>): Unit
infix fun HttpMessage .shouldHaveBody(expected: String ): Unit
infix fun HttpMessage .shouldHaveBody(expected: Regex ): Unit
fun <T> HttpMessage .shouldHaveBody(lens: BodyLens <T>, matcher: Matcher<T>): Unit |
shouldHaveContentType |
infix fun HttpMessage .shouldHaveContentType(expected: ContentType ): Unit |
shouldHaveHeader |
fun <T> HttpMessage .shouldHaveHeader(lens: HeaderLens <T>, matcher: Matcher<T>): Unit
fun HttpMessage .shouldHaveHeader(name: String , matcher: Matcher< String >): Unit
fun HttpMessage .shouldHaveHeader(name: String , expected: String ): Unit
fun HttpMessage .shouldHaveHeader(name: String , expected: Regex ): Unit
infix fun HttpMessage .shouldHaveHeader(name: String ): Unit
fun HttpMessage .shouldHaveHeader(name: String , expected: List < String ?>): Unit |
shouldNotHaveBody |
infix fun HttpMessage .shouldNotHaveBody(expected: Matcher< Body >): Unit
infix fun HttpMessage .shouldNotHaveBody(expected: Matcher< String ?>): Unit
infix fun HttpMessage .shouldNotHaveBody(expected: String ): Unit
infix fun HttpMessage .shouldNotHaveBody(expected: Regex ): Unit
fun <T> HttpMessage .shouldNotHaveBody(lens: BodyLens <T>, matcher: Matcher<T>): Unit |
shouldNotHaveContentType |
infix fun HttpMessage .shouldNotHaveContentType(expected: ContentType ): Unit |
shouldNotHaveHeader |
fun <T> HttpMessage .shouldNotHaveHeader(lens: HeaderLens <T>, matcher: Matcher<T>): Unit
fun HttpMessage .shouldNotHaveHeader(name: String , matcher: Matcher< String >): Unit
fun HttpMessage .shouldNotHaveHeader(name: String , expected: String ): Unit
fun HttpMessage .shouldNotHaveHeader(name: String , expected: Regex ): Unit
infix fun HttpMessage .shouldNotHaveHeader(name: String ): Unit
fun HttpMessage .shouldNotHaveHeader(name: String , expected: List < String ?>): Unit |
with |
fun <T : HttpMessage > T.with(vararg modifiers: (T) -> T): T |
Inheritors