http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-core
/
org.http4k.core
/
HttpTransaction
Http
Transaction
data
class
HttpTransaction
(
val
request
:
Request
,
val
response
:
Response
,
val
duration
:
Duration
,
val
labels
:
Map
<
String
,
String
>
=
defaultLabels(request, response)
,
val
start
:
Instant
)
:
ProtocolTransaction
<
Response
>
(
source
)
Members
Constructors
Http
Transaction
Link copied to clipboard
constructor
(
request
:
Request
,
response
:
Response
,
duration
:
Duration
,
labels
:
Map
<
String
,
String
>
=
defaultLabels(request, response)
,
start
:
Instant
)
Properties
duration
Link copied to clipboard
open
override
val
duration
:
Duration
labels
Link copied to clipboard
open
override
val
labels
:
Map
<
String
,
String
>
request
Link copied to clipboard
open
override
val
request
:
Request
response
Link copied to clipboard
open
override
val
response
:
Response
routing
Group
Link copied to clipboard
open
val
routingGroup
:
String
start
Link copied to clipboard
open
override
val
start
:
Instant
Functions
label
Link copied to clipboard
fun
label
(
name
:
String
,
value
:
String
)
:
HttpTransaction
open
fun
label
(
name
:
String
)
:
String
?