http4k / org.http4k.core / HttpTransaction
data class HttpTransaction
| Name | Summary |
|—|—|
| <init> | HttpTransaction(request:
Request
, response:
Response
, duration:
Duration
, labels:
Map
<
String
,
String
> = when {
response is RoutedResponse -> mapOf(ROUTING_GROUP_LABEL to response.xUriTemplate.toString())
request is RoutedRequest -> mapOf(ROUTING_GROUP_LABEL to request.xUriTemplate.toString())
else -> emptyMap()
})
|
Name | Summary |
---|---|
duration | val duration: Duration |
labels | val labels: Map < String , String > |
request | val request: Request |
response | val response: Response |
routingGroup | val routingGroup: String |
Name | Summary |
---|---|
label | fun label(name: String , value: String ): HttpTransaction fun label(name: String ): String ? |
Name | Summary |
---|---|
shouldHaveRequest | infix fun HttpTransaction .shouldHaveRequest(match: Matcher< Request >): Unit |
shouldHaveResponse | infix fun HttpTransaction .shouldHaveResponse(match: Matcher< Response >): Unit |
shouldNotHaveRequest | infix fun HttpTransaction .shouldNotHaveRequest(match: Matcher< Request >): Unit |
shouldNotHaveResponse | infix fun HttpTransaction .shouldNotHaveResponse(match: Matcher< Response >): Unit |