trixnity
Toggle table of contents
5.2.0-SNAPSHOT.CI-20260302.101522
common
Target filter
common
Switch theme
Search in API
Skip to content
trixnity
trixnity-api-client
/
de.connect2x.trixnity.api.client
/
MatrixApiClient
/
withRequest
with
Request
inline suspend
fun
<
ENDPOINT
:
MatrixEndpoint
<
Unit
,
RESPONSE
>
,
RESPONSE
,
T
>
withRequest
(
endpoint
:
ENDPOINT
,
requestBuilder
:
HttpRequestBuilder
.
(
)
->
Unit
=
{}
,
noinline
responseHandler
:
suspend
(
RESPONSE
)
->
T
)
:
Result
<
T
>
inline suspend
fun
<
ENDPOINT
:
MatrixEndpoint
<
REQUEST
,
RESPONSE
>
,
REQUEST
,
RESPONSE
,
T
>
withRequest
(
endpoint
:
ENDPOINT
,
body
:
REQUEST
,
requestBuilder
:
HttpRequestBuilder
.
(
)
->
Unit
=
{}
,
noinline
responseHandler
:
suspend
(
RESPONSE
)
->
T
)
:
Result
<
T
>