Kotlin/JS GitHub Actions SDK
1.6.1-SNAPSHOT
Kotlin JS GitHub Action SDK Serialization support
/
com.rnett.action.serialization
/
JsonHttpResponse
Json
Http
Response
class
JsonHttpResponse
(
response
:
HttpResponse
,
json
:
Json
)
:
HttpResponse
(
source
)
A HTTP response that you can get JSON deserialized responses from.
Constructors
Functions
Properties
Constructors
Json
Http
Response
Link copied to clipboard
fun
JsonHttpResponse
(
response
:
HttpResponse
,
json
:
Json
)
Functions
is
Success
Link copied to clipboard
open
override
fun
isSuccess
(
)
:
Boolean
read
Body
Link copied to clipboard
open
suspend override
fun
readBody
(
)
:
String
read
Json
Body
Link copied to clipboard
inline suspend
fun
<
T
>
readJsonBody
(
)
:
T
Properties
headers
Link copied to clipboard
open
override
val
headers
:
Headers
message
Link copied to clipboard
open
override
val
message
:
IncomingMessage
status
Code
Link copied to clipboard
open
override
val
statusCode
:
Int
status
Message
Link copied to clipboard
open
override
val
statusMessage
:
String