toggle menu
network-either-kmp
0.3.0-SNAPSHOT
common
switch theme
search in API
network-either
/
com.javiersc.network.either
/
NetworkEither
/
Companion
Companion
object
Companion
Members
Functions
build
Http
Failure
Link copied to clipboard
fun
<
F
>
buildHttpFailure
(
error
:
F
,
code
:
Int
,
headers
:
Headers
)
:
NetworkEither.Failure.Http
<
F
>
build
Local
Failure
Link copied to clipboard
fun
buildLocalFailure
(
)
:
NetworkEither.Failure.Local
build
Remote
Failure
Link copied to clipboard
fun
buildRemoteFailure
(
)
:
NetworkEither.Failure.Remote
build
Success
Link copied to clipboard
fun
<
S
>
buildSuccess
(
data
:
S
,
code
:
Int
,
headers
:
Headers
)
:
NetworkEither.Success
<
S
>
build
Unknown
Failure
Link copied to clipboard
fun
buildUnknownFailure
(
throwable
:
Throwable
)
:
NetworkEither.Failure.Unknown
http
Failure
Link copied to clipboard
fun
<
F
>
httpFailure
(
error
:
F
,
code
:
Int
,
headers
:
Headers
)
:
NetworkEither
<
F
,
Nothing
>
local
Failure
Link copied to clipboard
fun
localFailure
(
)
:
NetworkEither
<
Nothing
,
Nothing
>
remote
Failure
Link copied to clipboard
fun
remoteFailure
(
)
:
NetworkEither
<
Nothing
,
Nothing
>
success
Link copied to clipboard
fun
<
S
>
success
(
data
:
S
,
code
:
Int
,
headers
:
Headers
)
:
NetworkEither
<
Nothing
,
S
>
unknown
Failure
Link copied to clipboard
fun
unknownFailure
(
throwable
:
Throwable
)
:
NetworkEither
<
Nothing
,
Nothing
>