Package-level declarations

Types

Link copied to clipboard

A @actions/http-client based Http client that uses kotlinx serialization Json parsing and adds Accept (always) and Content-Type (*Json methods) headers.

Link copied to clipboard
class JsonHttpResponse(response: HttpResponse, json: Json) : HttpResponse

A HTTP response that you can get JSON deserialized responses from.

Functions

Link copied to clipboard
@ExperimentalSerializationApi
inline fun <D, T> ReadOnlyProperty<D, ByteArray>.deserialize(format: BinaryFormat): ReadOnlyProperty<D, T>
@ExperimentalSerializationApi
inline fun <D, T> ReadOnlyProperty<D, String>.deserialize(format: StringFormat): ReadOnlyProperty<D, T>
@ExperimentalSerializationApi
fun <D, T> ReadOnlyProperty<D, ByteArray>.deserialize(format: BinaryFormat, serializer: DeserializationStrategy<T>): ReadOnlyProperty<D, T>
@ExperimentalSerializationApi
fun <D, T> ReadOnlyProperty<D, String>.deserialize(format: StringFormat, serializer: DeserializationStrategy<T>): ReadOnlyProperty<D, T>

Deserialize the read string.

@ExperimentalSerializationApi
inline fun <D, T> ReadWriteProperty<D, ByteArray>.deserialize(format: BinaryFormat): ReadWriteProperty<D, T>
@ExperimentalSerializationApi
inline fun <D, T> ReadWriteProperty<D, String>.deserialize(format: StringFormat): ReadWriteProperty<D, T>
@ExperimentalSerializationApi
fun <D, T> ReadWriteProperty<D, ByteArray>.deserialize(format: BinaryFormat, serializer: KSerializer<T>): ReadWriteProperty<D, T>
@ExperimentalSerializationApi
fun <D, T> ReadWriteProperty<D, String>.deserialize(format: StringFormat, serializer: KSerializer<T>): ReadWriteProperty<D, T>

Deserialize reads from and serialize writes to the delegate.

Link copied to clipboard
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadOnlyProperty<D, ByteArray?>.deserializeNotNull(format: BinaryFormat): ReadOnlyProperty<D, T?>
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadOnlyProperty<D, String?>.deserializeNotNull(format: StringFormat): ReadOnlyProperty<D, T?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadOnlyProperty<D, ByteArray?>.deserializeNotNull(format: BinaryFormat, serializer: DeserializationStrategy<T>): ReadOnlyProperty<D, T?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadOnlyProperty<D, String?>.deserializeNotNull(format: StringFormat, serializer: DeserializationStrategy<T>): ReadOnlyProperty<D, T?>

Deserialize the read string if it is non-null.

@ExperimentalSerializationApi
inline fun <D, T : Any> ReadWriteProperty<D, ByteArray?>.deserializeNotNull(format: BinaryFormat): ReadWriteProperty<D, T?>
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadWriteProperty<D, String?>.deserializeNotNull(format: StringFormat): ReadWriteProperty<D, T?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadWriteProperty<D, ByteArray?>.deserializeNotNull(format: BinaryFormat, serializer: KSerializer<T>): ReadWriteProperty<D, T?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadWriteProperty<D, String?>.deserializeNotNull(format: StringFormat, serializer: KSerializer<T>): ReadWriteProperty<D, T?>

Deserialize reads from and serialize writes to the delegate, if the values are non-null.

Link copied to clipboard
fun HttpClient.json(json: Json = Json): JsonHttpClient

Get a Http client with json support wrapping this client.

Link copied to clipboard
inline fun JsonHttpClient(json: Json = Json, builder: HttpClientBuilder.() -> Unit = {}): JsonHttpClient

A @actions/http-client based Http client that uses kotlinx serialization Json parsing and adds Accept (always) and Content-Type (*Json methods) headers.

Link copied to clipboard
@ExperimentalSerializationApi
inline fun <D, T> ReadOnlyProperty<D, T>.serialize(format: BinaryFormat): ReadOnlyProperty<D, ByteArray>
@ExperimentalSerializationApi
inline fun <D, T> ReadOnlyProperty<D, T>.serialize(format: StringFormat): ReadOnlyProperty<D, String>
@ExperimentalSerializationApi
fun <D, T> ReadOnlyProperty<D, T>.serialize(format: BinaryFormat, serializer: SerializationStrategy<T>): ReadOnlyProperty<D, ByteArray>
@ExperimentalSerializationApi
fun <D, T> ReadOnlyProperty<D, T>.serialize(format: StringFormat, serializer: SerializationStrategy<T>): ReadOnlyProperty<D, String>

Serialize the read value.

@ExperimentalSerializationApi
inline fun <D, T> ReadWriteProperty<D, T>.serialize(format: BinaryFormat): ReadWriteProperty<D, ByteArray>
@ExperimentalSerializationApi
inline fun <D, T> ReadWriteProperty<D, T>.serialize(format: StringFormat): ReadWriteProperty<D, String>
@ExperimentalSerializationApi
fun <D, T> ReadWriteProperty<D, T>.serialize(format: BinaryFormat, serializer: KSerializer<T>): ReadWriteProperty<D, ByteArray>
@ExperimentalSerializationApi
fun <D, T> ReadWriteProperty<D, T>.serialize(format: StringFormat, serializer: KSerializer<T>): ReadWriteProperty<D, String>

Serialize reads from and deserialize writes to the delegate.

Link copied to clipboard
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadOnlyProperty<D, T?>.serializeNonNull(format: BinaryFormat): ReadOnlyProperty<D, ByteArray?>
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadOnlyProperty<D, T?>.serializeNonNull(format: StringFormat): ReadOnlyProperty<D, String?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadOnlyProperty<D, T?>.serializeNonNull(format: BinaryFormat, serializer: SerializationStrategy<T>): ReadOnlyProperty<D, ByteArray?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadOnlyProperty<D, T?>.serializeNonNull(format: StringFormat, serializer: SerializationStrategy<T>): ReadOnlyProperty<D, String?>

Serialize the read value, if it is non-null.

@ExperimentalSerializationApi
inline fun <D, T : Any> ReadWriteProperty<D, T?>.serializeNonNull(format: BinaryFormat): ReadWriteProperty<D, ByteArray?>
@ExperimentalSerializationApi
inline fun <D, T : Any> ReadWriteProperty<D, T?>.serializeNonNull(format: StringFormat): ReadWriteProperty<D, String?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadWriteProperty<D, T?>.serializeNonNull(format: BinaryFormat, serializer: KSerializer<T>): ReadWriteProperty<D, ByteArray?>
@ExperimentalSerializationApi
fun <D, T : Any> ReadWriteProperty<D, T?>.serializeNonNull(format: StringFormat, serializer: KSerializer<T>): ReadWriteProperty<D, String?>

Serialize reads from and deserialize writes to the delegate, if the values are non-null.