trixnity-api-client
Toggle table of contents
4.12.1
common
Platform filter
common
Switch theme
Search in API
trixnity-api-client
trixnity-api-client
/
net.folivo.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
>