diff --git a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/index.md b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/index.md index 4596b57..42ff3bb 100644 --- a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/index.md +++ b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/index.md @@ -14,5 +14,5 @@ | Name | Summary | |---|---| -| [requestConverter](request-converter.md) | `fun requestConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonRequestBodyConverter`](../-gson-request-body-converter/index.md)`` | -| [responseConverter](response-converter.md) | `fun responseConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonResponseBodyConverter`](../-gson-response-body-converter/index.md)`` | +| [requestConverter](request-converter.md) | `fun requestConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonRequestBodyConverter`](../-gson-request-body-converter/index.md)`` | +| [responseConverter](response-converter.md) | `fun responseConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonResponseBodyConverter`](../-gson-response-body-converter/index.md)`` | diff --git a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/request-converter.md b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/request-converter.md index 974cc58..ebc523d 100644 --- a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/request-converter.md +++ b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/request-converter.md @@ -2,4 +2,4 @@ # requestConverter -`fun requestConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonRequestBodyConverter`](../-gson-request-body-converter/index.md)`` \ No newline at end of file +`fun requestConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonRequestBodyConverter`](../-gson-request-body-converter/index.md)`` \ No newline at end of file diff --git a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/response-converter.md b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/response-converter.md index 115f5f5..7cd5305 100644 --- a/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/response-converter.md +++ b/docs/converter-gson/com.agoda.ninjato.converter/-gson-body-converter-factory/response-converter.md @@ -2,4 +2,4 @@ # responseConverter -`fun responseConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonResponseBodyConverter`](../-gson-response-body-converter/index.md)`` \ No newline at end of file +`fun responseConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`GsonResponseBodyConverter`](../-gson-response-body-converter/index.md)`` \ No newline at end of file diff --git a/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md b/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md index 8c8dc24..5b18d29 100644 --- a/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md +++ b/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md @@ -2,7 +2,7 @@ # call -`inline fun Api.call(crossinline receiver: Wrapper<`[`T`](call.md#T)`>.() -> `[`T`](call.md#T)`): `[`Call`](../-call/index.md)`<`[`T`](call.md#T)`>` +`inline fun Api.call(crossinline receiver: Api.() -> `[`T`](call.md#T)`): `[`Call`](../-call/index.md)`<`[`T`](call.md#T)`>` Wraps the network call with [Call](../-call/index.md). If no exceptions were thrown, the inferred return type will be passed as the [result](../-call/-success/result.md) property of [Success](../-call/-success/index.md) wrapper. diff --git a/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/index.md b/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/index.md index d593bf1..5d9b50e 100644 --- a/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/index.md +++ b/docs/extension-call/com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/index.md @@ -4,4 +4,4 @@ | Name | Summary | |---|---| -| [call](call.md) | `fun Api.call(receiver: Wrapper<`[`T`](call.md#T)`>.() -> `[`T`](call.md#T)`): `[`Call`](../-call/index.md)`<`[`T`](call.md#T)`>`
Wraps the network call with [Call](../-call/index.md). If no exceptions were thrown, the inferred return type will be passed as the [result](../-call/-success/result.md) property of [Success](../-call/-success/index.md) wrapper. | +| [call](call.md) | `fun Api.call(receiver: Api.() -> `[`T`](call.md#T)`): `[`Call`](../-call/index.md)`<`[`T`](call.md#T)`>`
Wraps the network call with [Call](../-call/index.md). If no exceptions were thrown, the inferred return type will be passed as the [result](../-call/-success/result.md) property of [Success](../-call/-success/index.md) wrapper. | diff --git a/docs/extension-call/package-list b/docs/extension-call/package-list index e0028b1..b8fdd8e 100644 --- a/docs/extension-call/package-list +++ b/docs/extension-call/package-list @@ -1,4 +1,4 @@ $dokka.format:gfm $dokka.linkExtension:md -$dokka.location:com.agoda.ninjato.extension.call$call(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.call.call.T)), )))com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md +$dokka.location:com.agoda.ninjato.extension.call$call(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.call.call.T)))com.agoda.ninjato.extension.call/com.agoda.ninjato.-api/call.md com.agoda.ninjato.extension.call diff --git a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md index 002e944..2cb153c 100644 --- a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md +++ b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md @@ -2,7 +2,7 @@ # completable -`inline fun Api.completable(crossinline receiver: Wrapper<`[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`>.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable` +`inline fun Api.completable(crossinline receiver: Api.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable` Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. diff --git a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/index.md b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/index.md index 058fe1d..456d1e8 100644 --- a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/index.md +++ b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/index.md @@ -4,6 +4,6 @@ | Name | Summary | |---|---| -| [completable](completable.md) | `fun Api.completable(receiver: Wrapper<`[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`>.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable`
Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. | -| [observable](observable.md) | `fun Api.observable(receiver: Wrapper<`[`T`](observable.md#T)`>.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>`
Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | -| [single](single.md) | `fun Api.single(receiver: Wrapper<`[`T`](single.md#T)`>.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>`
Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | +| [completable](completable.md) | `fun Api.completable(receiver: Api.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable`
Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. | +| [observable](observable.md) | `fun Api.observable(receiver: Api.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>`
Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | +| [single](single.md) | `fun Api.single(receiver: Api.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>`
Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | diff --git a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md index d98b64b..618ee48 100644 --- a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md +++ b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md @@ -2,7 +2,7 @@ # observable -`inline fun Api.observable(crossinline receiver: Wrapper<`[`T`](observable.md#T)`>.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>` +`inline fun Api.observable(crossinline receiver: Api.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>` Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. diff --git a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md index 316066c..ece3533 100644 --- a/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md +++ b/docs/extension-rxjava/com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md @@ -2,7 +2,7 @@ # single -`inline fun Api.single(crossinline receiver: Wrapper<`[`T`](single.md#T)`>.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>` +`inline fun Api.single(crossinline receiver: Api.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>` Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. diff --git a/docs/extension-rxjava/package-list b/docs/extension-rxjava/package-list index c66aefc..e6bc013 100644 --- a/docs/extension-rxjava/package-list +++ b/docs/extension-rxjava/package-list @@ -1,6 +1,6 @@ $dokka.format:gfm $dokka.linkExtension:md -$dokka.location:com.agoda.ninjato.extension.rxjava$completable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((kotlin.Unit)), )))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md -$dokka.location:com.agoda.ninjato.extension.rxjava$observable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.rxjava.observable.T)), )))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md -$dokka.location:com.agoda.ninjato.extension.rxjava$single(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.rxjava.single.T)), )))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md +$dokka.location:com.agoda.ninjato.extension.rxjava$completable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, kotlin.Unit)))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/completable.md +$dokka.location:com.agoda.ninjato.extension.rxjava$observable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.rxjava.observable.T)))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/observable.md +$dokka.location:com.agoda.ninjato.extension.rxjava$single(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.rxjava.single.T)))com.agoda.ninjato.extension.rxjava/com.agoda.ninjato.-api/single.md com.agoda.ninjato.extension.rxjava diff --git a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md index b064aad..adde75e 100644 --- a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md +++ b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md @@ -2,7 +2,7 @@ # completable -`inline fun Api.completable(crossinline receiver: Wrapper<`[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`>.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable` +`inline fun Api.completable(crossinline receiver: Api.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable` Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. diff --git a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md index 636aad6..a13617e 100644 --- a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md +++ b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md @@ -2,7 +2,7 @@ # flowable -`inline fun Api.flowable(crossinline receiver: Wrapper<`[`T`](flowable.md#T)`>.() -> `[`T`](flowable.md#T)`): Flowable<`[`T`](flowable.md#T)`>` +`inline fun Api.flowable(crossinline receiver: Api.() -> `[`T`](flowable.md#T)`): Flowable<`[`T`](flowable.md#T)`>` Wraps the network call with [Flowable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. diff --git a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/index.md b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/index.md index b1caa11..c3b0e6e 100644 --- a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/index.md +++ b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/index.md @@ -4,7 +4,7 @@ | Name | Summary | |---|---| -| [completable](completable.md) | `fun Api.completable(receiver: Wrapper<`[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`>.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable`
Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. | -| [flowable](flowable.md) | `fun Api.flowable(receiver: Wrapper<`[`T`](flowable.md#T)`>.() -> `[`T`](flowable.md#T)`): Flowable<`[`T`](flowable.md#T)`>`
Wraps the network call with [Flowable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | -| [observable](observable.md) | `fun Api.observable(receiver: Wrapper<`[`T`](observable.md#T)`>.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>`
Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | -| [single](single.md) | `fun Api.single(receiver: Wrapper<`[`T`](single.md#T)`>.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>`
Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | +| [completable](completable.md) | `fun Api.completable(receiver: Api.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): Completable`
Wraps the network call with [Completable](#). If no exceptions were thrown, [complete()](#) will be invoked as soon as the call finishes. | +| [flowable](flowable.md) | `fun Api.flowable(receiver: Api.() -> `[`T`](flowable.md#T)`): Flowable<`[`T`](flowable.md#T)`>`
Wraps the network call with [Flowable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | +| [observable](observable.md) | `fun Api.observable(receiver: Api.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>`
Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | +| [single](single.md) | `fun Api.single(receiver: Api.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>`
Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. | diff --git a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md index b2aca44..d86ed34 100644 --- a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md +++ b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md @@ -2,7 +2,7 @@ # observable -`inline fun Api.observable(crossinline receiver: Wrapper<`[`T`](observable.md#T)`>.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>` +`inline fun Api.observable(crossinline receiver: Api.() -> `[`T`](observable.md#T)`): Observable<`[`T`](observable.md#T)`>` Wraps the network call with [Observable](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. diff --git a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md index 7c7bfdf..aaad349 100644 --- a/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md +++ b/docs/extension-rxjava2/com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md @@ -2,7 +2,7 @@ # single -`inline fun Api.single(crossinline receiver: Wrapper<`[`T`](single.md#T)`>.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>` +`inline fun Api.single(crossinline receiver: Api.() -> `[`T`](single.md#T)`): Single<`[`T`](single.md#T)`>` Wraps the network call with [Single](#). If no exceptions were thrown, the inferred return type will be passed to the subscription. diff --git a/docs/extension-rxjava2/package-list b/docs/extension-rxjava2/package-list index 460058e..b89212b 100644 --- a/docs/extension-rxjava2/package-list +++ b/docs/extension-rxjava2/package-list @@ -1,7 +1,7 @@ $dokka.format:gfm $dokka.linkExtension:md -$dokka.location:com.agoda.ninjato.extension.rxjava2$completable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((kotlin.Unit)), )))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md -$dokka.location:com.agoda.ninjato.extension.rxjava2$flowable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.rxjava2.flowable.T)), )))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md -$dokka.location:com.agoda.ninjato.extension.rxjava2$observable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.rxjava2.observable.T)), )))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md -$dokka.location:com.agoda.ninjato.extension.rxjava2$single(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.extension.Wrapper((com.agoda.ninjato.extension.rxjava2.single.T)), )))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md +$dokka.location:com.agoda.ninjato.extension.rxjava2$completable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, kotlin.Unit)))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/completable.md +$dokka.location:com.agoda.ninjato.extension.rxjava2$flowable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.rxjava2.flowable.T)))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/flowable.md +$dokka.location:com.agoda.ninjato.extension.rxjava2$observable(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.rxjava2.observable.T)))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/observable.md +$dokka.location:com.agoda.ninjato.extension.rxjava2$single(com.agoda.ninjato.Api, kotlin.Function1((com.agoda.ninjato.Api, com.agoda.ninjato.extension.rxjava2.single.T)))com.agoda.ninjato.extension.rxjava2/com.agoda.ninjato.-api/single.md com.agoda.ninjato.extension.rxjava2 diff --git a/docs/ninjato-core/alltypes/index.md b/docs/ninjato-core/alltypes/index.md index 681b17d..07b7779 100644 --- a/docs/ninjato-core/alltypes/index.md +++ b/docs/ninjato-core/alltypes/index.md @@ -5,7 +5,7 @@ | Name | Summary | |---|---| | [com.agoda.ninjato.Api](../com.agoda.ninjato/-api/index.md) | Main class of the library. Provides access to the DSL of call functions. | -| [com.agoda.ninjato.http.Body](../com.agoda.ninjato.http/-body/index.md) | Body entity of every [request](../com.agoda.ninjato.http/-request/index.md) and [response](../com.agoda.ninjato.http/-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | +| [com.agoda.ninjato.http.Body](../com.agoda.ninjato.http/-body/index.md) | Body entity of every [request](../com.agoda.ninjato.http/-request/index.md) and [response](../com.agoda.ninjato.http/-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | | [com.agoda.ninjato.converter.BodyConverter](../com.agoda.ninjato.converter/-body-converter/index.md) | Interface for converting instances of type `I` to type `O`. | | [com.agoda.ninjato.dsl.Commons](../com.agoda.ninjato.dsl/-commons/index.md) | The main DSL entry of the library. | | [com.agoda.ninjato.converter.ConverterFactories](../com.agoda.ninjato.converter/-converter-factories/index.md) | DSL context for aggregating [converter factories](../com.agoda.ninjato.converter/-body-converter/-factory/index.md). Supports additions of single factory and iterables of factories. | @@ -17,7 +17,7 @@ | [com.agoda.ninjato.exception.HttpException](../com.agoda.ninjato.exception/-http-exception/index.md) | This exception is thrown when [request](../com.agoda.ninjato.http/-request/index.md) returns error code and the inferred (request) return type is not [response](../com.agoda.ninjato.http/-response/index.md). | | [com.agoda.ninjato.intercept.Interceptor](../com.agoda.ninjato.intercept/-interceptor/index.md) | Base interceptor interface that allows custom logic before [request](../com.agoda.ninjato.http/-request/index.md) is executed and after [response](../com.agoda.ninjato.http/-response/index.md) is retrieved. | | [com.agoda.ninjato.intercept.Interceptors](../com.agoda.ninjato.intercept/-interceptors/index.md) | DSL context for aggregating [interceptors](../com.agoda.ninjato.intercept/-interceptor/index.md). Supports additions of single and arrays of request and response interceptors. | -| [com.agoda.ninjato.http.MediaType](../com.agoda.ninjato.http/-media-type/index.md) | Media type of the [request](../com.agoda.ninjato.http/-request/index.md) or [response](../com.agoda.ninjato.http/-response/index.md) body encoded in specified [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | +| [com.agoda.ninjato.http.MediaType](../com.agoda.ninjato.http/-media-type/index.md) | Media type of the [request](../com.agoda.ninjato.http/-request/index.md) or [response](../com.agoda.ninjato.http/-response/index.md) body encoded in specified [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | | [com.agoda.ninjato.http.Method](../com.agoda.ninjato.http/-method/index.md) | Method of the http [request](../com.agoda.ninjato.http/-request/index.md). | | [com.agoda.ninjato.exception.MissingBodyException](../com.agoda.ninjato.exception/-missing-body-exception/index.md) | This exception is thrown when [method](../com.agoda.ninjato.http/-method/index.md) of [request](../com.agoda.ninjato.http/-request/index.md) requires body to be present but cannot be found by the library. | | [com.agoda.ninjato.exception.MissingConverterException](../com.agoda.ninjato.exception/-missing-converter-exception/index.md) | This exception is thrown when library cannot acquire [converter](../com.agoda.ninjato.converter/-body-converter/index.md) from the provided [factories](../com.agoda.ninjato.converter/-body-converter/-factory/index.md) and thus is unable to convert your provided value to [body](../com.agoda.ninjato.http/-body/index.md). | @@ -30,4 +30,3 @@ | [com.agoda.ninjato.intercept.ResponseInterceptor](../com.agoda.ninjato.intercept/-response-interceptor/index.md) | Base class for [response](../com.agoda.ninjato.http/-response/index.md) interceptors. | | [com.agoda.ninjato.policy.Retry](../com.agoda.ninjato.policy/-retry/index.md) | Resolutions of the [retry policies](../com.agoda.ninjato.policy/-retry-policy/index.md) | | [com.agoda.ninjato.policy.RetryPolicy](../com.agoda.ninjato.policy/-retry-policy/index.md) | Retry policy. This policy gets invoked when request has failed to complete successfully. | -| [com.agoda.ninjato.extension.Wrapper](../com.agoda.ninjato.extension/-wrapper/index.md) | This class allows contributors to write wrapper-like extension functions. | diff --git a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/index.md b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/index.md index a9327d4..c7a5483 100644 --- a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/index.md @@ -10,5 +10,5 @@ Factory interface for providing converters to and from [body](../../../com.agoda | Name | Summary | |---|---| -| [requestConverter](request-converter.md) | `abstract fun requestConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<*, `[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`>?`
Function that provides converter from custom type to [body](../../../com.agoda.ninjato.http/-body/index.md). | -| [responseConverter](response-converter.md) | `abstract fun responseConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<`[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`, *>?`
Function that provides converter from [body](../../../com.agoda.ninjato.http/-body/index.md) to custom type. | +| [requestConverter](request-converter.md) | `abstract fun requestConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<*, `[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`>?`
Function that provides converter from custom type to [body](../../../com.agoda.ninjato.http/-body/index.md). | +| [responseConverter](response-converter.md) | `abstract fun responseConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<`[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`, *>?`
Function that provides converter from [body](../../../com.agoda.ninjato.http/-body/index.md) to custom type. | diff --git a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/request-converter.md b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/request-converter.md index 7db0fc8..9b36b50 100644 --- a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/request-converter.md +++ b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/request-converter.md @@ -2,7 +2,7 @@ # requestConverter -`abstract fun requestConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<*, `[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`>?` +`abstract fun requestConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<*, `[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`>?` Function that provides converter from custom type to [body](../../../com.agoda.ninjato.http/-body/index.md). diff --git a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/response-converter.md b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/response-converter.md index 608b487..2b462f5 100644 --- a/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/response-converter.md +++ b/docs/ninjato-core/com.agoda.ninjato.converter/-body-converter/-factory/response-converter.md @@ -2,7 +2,7 @@ # responseConverter -`abstract fun responseConverter(type: `[`Type`](http://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<`[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`, *>?` +`abstract fun responseConverter(type: `[`Type`](https://docs.oracle.com/javase/6/docs/api/java/lang/reflect/Type.html)`): `[`BodyConverter`](../index.md)`<`[`Body`](../../../com.agoda.ninjato.http/-body/index.md)`, *>?` Function that provides converter from [body](../../../com.agoda.ninjato.http/-body/index.md) to custom type. diff --git a/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/index.md b/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/index.md index 28a74c2..63da623 100644 --- a/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/index.md @@ -21,4 +21,4 @@ This is done to support overriding of converters. | Name | Summary | |---|---| -| [plusAssign](plus-assign.md) | `operator fun plusAssign(factory: `[`Factory`](../-body-converter/-factory/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
Adds provided factory to the aggregation.`operator fun plusAssign(factories: `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<`[`Factory`](../-body-converter/-factory/index.md)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
Adds provided factories to the aggregation. | +| [plusAssign](plus-assign.md) | `operator fun plusAssign(factory: `[`BodyConverter.Factory`](../-body-converter/-factory/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
Adds provided factory to the aggregation.`operator fun plusAssign(factories: `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<`[`BodyConverter.Factory`](../-body-converter/-factory/index.md)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)
Adds provided factories to the aggregation. | diff --git a/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/plus-assign.md b/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/plus-assign.md index b04a3a7..876a627 100644 --- a/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/plus-assign.md +++ b/docs/ninjato-core/com.agoda.ninjato.converter/-converter-factories/plus-assign.md @@ -2,13 +2,13 @@ # plusAssign -`operator fun plusAssign(factory: `[`Factory`](../-body-converter/-factory/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) +`operator fun plusAssign(factory: `[`BodyConverter.Factory`](../-body-converter/-factory/index.md)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) Adds provided factory to the aggregation. ### Parameters -`factory` - factory to add.`operator fun plusAssign(factories: `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<`[`Factory`](../-body-converter/-factory/index.md)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) +`factory` - factory to add.`operator fun plusAssign(factories: `[`Iterable`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin.collections/-iterable/index.html)`<`[`BodyConverter.Factory`](../-body-converter/-factory/index.md)`>): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) Adds provided factories to the aggregation. diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/-init-.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/-init-.md deleted file mode 100644 index 7c5f2a6..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/-init-.md +++ /dev/null @@ -1,44 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [<init>](./-init-.md) - -# <init> - -`Wrapper(api: `[`Api`](../../com.agoda.ninjato/-api/index.md)`)` - -This class allows contributors to write wrapper-like extension functions. - -In current release of Kotlin, the compiler cannot auto-cast the inferred type inside inlined lambdas. - -It means that you still have to manually specify the reified type if you're calling such a function inside -a lambda that is being passed to another reified inline function and their types are the same. - -Here's the example of usage: - -``` -inline fun Api.observable(crossinline receiver: Wrapper.() -> T): Observable = Observable.fromCallable { - receiver(object : Wrapper(this) {}) -} - -class YourApi : Api { - fun search(query: String): Observable = observable { - get { - ... - } - } -} -``` - -Without such a wrapper class, you would have to manually specify your type that actually can be inferred: - -``` -class YourApi : Api { - fun search(query: String): Observable = observable { - get { - ... - } - } -} -``` - -### Parameters - -`api` - instance of the [Api](../../com.agoda.ninjato/-api/index.md) to wrap around. \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/delete.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/delete.md deleted file mode 100644 index e29be8d..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/delete.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [delete](./delete.md) - -# delete - -`inline fun delete(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T) - -Executes the DELETE request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/get.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/get.md deleted file mode 100644 index 842caf6..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/get.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [get](./get.md) - -# get - -`inline fun get(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T) - -Executes the GET request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/head.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/head.md deleted file mode 100644 index 5771340..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/head.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [head](./head.md) - -# head - -`inline fun head(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T) - -Executes the HEAD request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/index.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/index.md deleted file mode 100644 index 7e1f0d2..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/index.md +++ /dev/null @@ -1,62 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](./index.md) - -# Wrapper - -`abstract class Wrapper` - -This class allows contributors to write wrapper-like extension functions. - -In current release of Kotlin, the compiler cannot auto-cast the inferred type inside inlined lambdas. - -It means that you still have to manually specify the reified type if you're calling such a function inside -a lambda that is being passed to another reified inline function and their types are the same. - -Here's the example of usage: - -``` -inline fun Api.observable(crossinline receiver: Wrapper.() -> T): Observable = Observable.fromCallable { - receiver(object : Wrapper(this) {}) -} - -class YourApi : Api { - fun search(query: String): Observable = observable { - get { - ... - } - } -} -``` - -Without such a wrapper class, you would have to manually specify your type that actually can be inferred: - -``` -class YourApi : Api { - fun search(query: String): Observable = observable { - get { - ... - } - } -} -``` - -### Parameters - -`api` - instance of the [Api](../../com.agoda.ninjato/-api/index.md) to wrap around. - -### Constructors - -| Name | Summary | -|---|---| -| [<init>](-init-.md) | `Wrapper(api: `[`Api`](../../com.agoda.ninjato/-api/index.md)`)`
This class allows contributors to write wrapper-like extension functions. | - -### Functions - -| Name | Summary | -|---|---| -| [delete](delete.md) | `fun delete(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T)
Executes the DELETE request with the provided configuration. | -| [get](get.md) | `fun get(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T)
Executes the GET request with the provided configuration. | -| [head](head.md) | `fun head(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T)
Executes the HEAD request with the provided configuration. | -| [options](options.md) | `fun options(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T)
Executes the OPTIONS request with the provided configuration. | -| [patch](patch.md) | `fun patch(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T)
Executes the PATCH request with the provided configuration. | -| [post](post.md) | `fun post(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T)
Executes the POST request with the provided configuration. | -| [put](put.md) | `fun put(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T)
Executes the PUT request with the provided configuration. | diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/options.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/options.md deleted file mode 100644 index 8128956..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/options.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [options](./options.md) - -# options - -`inline fun options(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T) - -Executes the OPTIONS request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/patch.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/patch.md deleted file mode 100644 index d9624a8..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/patch.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [patch](./patch.md) - -# patch - -`inline fun patch(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T) - -Executes the PATCH request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/post.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/post.md deleted file mode 100644 index b4e8fc8..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/post.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [post](./post.md) - -# post - -`inline fun post(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T) - -Executes the POST request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/put.md b/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/put.md deleted file mode 100644 index bf5a8d5..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/-wrapper/put.md +++ /dev/null @@ -1,11 +0,0 @@ -[ninjato-core](../../index.md) / [com.agoda.ninjato.extension](../index.md) / [Wrapper](index.md) / [put](./put.md) - -# put - -`inline fun put(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T) - -Executes the PUT request with the provided configuration. - -### Parameters - -`configurator` - the configuration of a [Request](../../com.agoda.ninjato.http/-request/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.extension/index.md b/docs/ninjato-core/com.agoda.ninjato.extension/index.md deleted file mode 100644 index 15db6d1..0000000 --- a/docs/ninjato-core/com.agoda.ninjato.extension/index.md +++ /dev/null @@ -1,9 +0,0 @@ -[ninjato-core](../index.md) / [com.agoda.ninjato.extension](./index.md) - -## Package com.agoda.ninjato.extension - -### Types - -| Name | Summary | -|---|---| -| [Wrapper](-wrapper/index.md) | `abstract class Wrapper`
This class allows contributors to write wrapper-like extension functions. | diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-body/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-body/-init-.md index 69dbf39..c97495f 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-body/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-body/-init-.md @@ -6,10 +6,10 @@ Body entity of every [request](../-request/index.md) and [response](../-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) -and [stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) +and [stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) ### Parameters `body` - actual body value -`mediaType` - type of the body value and it's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) \ No newline at end of file +`mediaType` - type of the body value and it's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-body/as-stream.md b/docs/ninjato-core/com.agoda.ninjato.http/-body/as-stream.md index ca2c75c..ef3af97 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-body/as-stream.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-body/as-stream.md @@ -2,7 +2,7 @@ # asStream -`val asStream: `[`InputStream`](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) +`val asStream: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) -Represents the body's value as [input stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) +Represents the body's value as [input stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-body/as-string.md b/docs/ninjato-core/com.agoda.ninjato.http/-body/as-string.md index 7fdf3c6..17dc90d 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-body/as-string.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-body/as-string.md @@ -4,5 +4,5 @@ `val asString: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) -Represents the body's value as [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) with media type's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) +Represents the body's value as [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) with media type's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-body/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-body/index.md index 820e6e7..291b919 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-body/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-body/index.md @@ -6,26 +6,26 @@ Body entity of every [request](../-request/index.md) and [response](../-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) -and [stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) +and [stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) ### Parameters `body` - actual body value -`mediaType` - type of the body value and it's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) +`mediaType` - type of the body value and it's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) ### Constructors | Name | Summary | |---|---| -| [<init>](-init-.md) | `Body(body: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, mediaType: `[`MediaType`](../-media-type/index.md)` = MediaType.Plain())``Body(body: `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, mediaType: `[`MediaType`](../-media-type/index.md)` = MediaType.Plain())`
Body entity of every [request](../-request/index.md) and [response](../-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | +| [<init>](-init-.md) | `Body(body: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, mediaType: `[`MediaType`](../-media-type/index.md)` = MediaType.Plain())``Body(body: `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)`, mediaType: `[`MediaType`](../-media-type/index.md)` = MediaType.Plain())`
Body entity of every [request](../-request/index.md) and [response](../-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | ### Properties | Name | Summary | |---|---| | [asByteArray](as-byte-array.md) | `val asByteArray: `[`ByteArray`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html)
Represents the body's value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) | -| [asStream](as-stream.md) | `val asStream: `[`InputStream`](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)
Represents the body's value as [input stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | -| [asString](as-string.md) | `val asString: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Represents the body's value as [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) with media type's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) | +| [asStream](as-stream.md) | `val asStream: `[`InputStream`](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html)
Represents the body's value as [input stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | +| [asString](as-string.md) | `val asString: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
Represents the body's value as [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) with media type's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) | | [contentLength](content-length.md) | `val contentLength: `[`Int`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)
Amount of bytes in the body's value | -| [mediaType](media-type.md) | `val mediaType: `[`MediaType`](../-media-type/index.md)
type of the body value and it's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) | +| [mediaType](media-type.md) | `val mediaType: `[`MediaType`](../-media-type/index.md)
type of the body value and it's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) | diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-body/media-type.md b/docs/ninjato-core/com.agoda.ninjato.http/-body/media-type.md index 5511f03..36dda01 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-body/media-type.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-body/media-type.md @@ -4,5 +4,5 @@ `val mediaType: `[`MediaType`](../-media-type/index.md) -type of the body value and it's [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) +type of the body value and it's [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/-init-.md index 6e6d5f6..9ab4203 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/-init-.md @@ -2,7 +2,7 @@ # <init> -`HttpClient(requestFactory: `[`Factory`](../-request/-factory/index.md)`? = null, responseFactory: `[`Factory`](../-response/-factory/index.md)`? = null, config: `[`HttpClient`](index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` = {})` +`HttpClient(requestFactory: `[`Request.Factory`](../-request/-factory/index.md)`? = null, responseFactory: `[`Response.Factory`](../-response/-factory/index.md)`? = null, config: `[`HttpClient`](index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` = {})` Abstraction of http client. Takes the top level in the cascade of [commons](../../com.agoda.ninjato.dsl/-commons/index.md) DSL features. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/index.md index d176116..e36ac8a 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/index.md @@ -24,7 +24,7 @@ Executes generated requests[Request](../-request/index.md) and returns [response | Name | Summary | |---|---| -| [<init>](-init-.md) | `HttpClient(requestFactory: `[`Factory`](../-request/-factory/index.md)`? = null, responseFactory: `[`Factory`](../-response/-factory/index.md)`? = null, config: `[`HttpClient`](./index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` = {})`
Abstraction of http client. Takes the top level in the cascade of [commons](../../com.agoda.ninjato.dsl/-commons/index.md) DSL features. Executes generated requests[Request](../-request/index.md) and returns [responses](../-response/index.md) in synchronous manner. | +| [<init>](-init-.md) | `HttpClient(requestFactory: `[`Request.Factory`](../-request/-factory/index.md)`? = null, responseFactory: `[`Response.Factory`](../-response/-factory/index.md)`? = null, config: `[`HttpClient`](./index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)` = {})`
Abstraction of http client. Takes the top level in the cascade of [commons](../../com.agoda.ninjato.dsl/-commons/index.md) DSL features. Executes generated requests[Request](../-request/index.md) and returns [responses](../-response/index.md) in synchronous manner. | ### Properties @@ -35,8 +35,8 @@ Executes generated requests[Request](../-request/index.md) and returns [response | [headers](headers.md) | `val headers: `[`Headers`](../-headers/index.md) | | [interceptors](interceptors.md) | `val interceptors: `[`Interceptors`](../../com.agoda.ninjato.intercept/-interceptors/index.md) | | [parameters](parameters.md) | `val parameters: `[`Parameters`](../-parameters/index.md) | -| [requestFactory](request-factory.md) | `var requestFactory: `[`Factory`](../-request/-factory/index.md)`?`
factory for building [request](../-request/index.md) entities. `null` by default. | -| [responseFactory](response-factory.md) | `var responseFactory: `[`Factory`](../-response/-factory/index.md)`?`
factory for building [response](../-response/index.md) entities. `null` by default. | +| [requestFactory](request-factory.md) | `var requestFactory: `[`Request.Factory`](../-request/-factory/index.md)`?`
factory for building [request](../-request/index.md) entities. `null` by default. | +| [responseFactory](response-factory.md) | `var responseFactory: `[`Response.Factory`](../-response/-factory/index.md)`?`
factory for building [response](../-response/index.md) entities. `null` by default. | | [retryPolicy](retry-policy.md) | `var retryPolicy: `[`RetryPolicy`](../../com.agoda.ninjato.policy/-retry-policy/index.md)`?` | ### Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/request-factory.md b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/request-factory.md index e04868e..85316fc 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/request-factory.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/request-factory.md @@ -2,7 +2,7 @@ # requestFactory -`protected var requestFactory: `[`Factory`](../-request/-factory/index.md)`?` +`protected var requestFactory: `[`Request.Factory`](../-request/-factory/index.md)`?` factory for building [request](../-request/index.md) entities. `null` by default. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/response-factory.md b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/response-factory.md index 59e69d6..4cbdc3c 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-http-client/response-factory.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-http-client/response-factory.md @@ -2,7 +2,7 @@ # responseFactory -`protected var responseFactory: `[`Factory`](../-response/-factory/index.md)`?` +`protected var responseFactory: `[`Response.Factory`](../-response/-factory/index.md)`?` factory for building [response](../-response/index.md) entities. `null` by default. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/-init-.md index 3a844cd..4e740e7 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/-init-.md @@ -2,7 +2,7 @@ # <init> -`Css(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`Css(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `text/css` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/index.md index 43f942b..bfafbb3 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-css/index.md @@ -14,13 +14,13 @@ Represents the `text/css` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `Css(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/css` content type. | +| [<init>](-init-.md) | `Css(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/css` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/-init-.md index b5ba60a..039b4a8 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/-init-.md @@ -2,7 +2,7 @@ # <init> -`FormUrlEncoded(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`FormUrlEncoded(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `application/x-www-form-urlencoded` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/index.md index 74ccc79..fd191f5 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-form-url-encoded/index.md @@ -14,13 +14,13 @@ Represents the `application/x-www-form-urlencoded` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `FormUrlEncoded(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `application/x-www-form-urlencoded` content type. | +| [<init>](-init-.md) | `FormUrlEncoded(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `application/x-www-form-urlencoded` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/-init-.md index 9dd4db2..084c877 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/-init-.md @@ -2,7 +2,7 @@ # <init> -`Html(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`Html(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `text/html` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/index.md index 2371b1a..409eacf 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-html/index.md @@ -14,13 +14,13 @@ Represents the `text/html` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `Html(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/html` content type. | +| [<init>](-init-.md) | `Html(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/html` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-init-.md index 56a805a..2efd419 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-init-.md @@ -2,10 +2,10 @@ # <init> -`MediaType(id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`MediaType(id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Media type of the [request](../-request/index.md) or [response](../-response/index.md) body encoded in specified -[charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). +[charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). ### Parameters diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/-init-.md index 65f9bdd..713d750 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/-init-.md @@ -2,7 +2,7 @@ # <init> -`JavaScript(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`JavaScript(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `text/javascript` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/index.md index b8fcabb..a6c059a 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-java-script/index.md @@ -14,13 +14,13 @@ Represents the `text/javascript` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `JavaScript(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/javascript` content type. | +| [<init>](-init-.md) | `JavaScript(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/javascript` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/-init-.md index 305522f..f65db89 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/-init-.md @@ -2,7 +2,7 @@ # <init> -`Json(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`Json(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `application/json` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/index.md index b3d77a2..88ac79f 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-json/index.md @@ -14,13 +14,13 @@ Represents the `application/json` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `Json(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `application/json` content type. | +| [<init>](-init-.md) | `Json(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `application/json` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/-init-.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/-init-.md index 3462494..e67f9d3 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/-init-.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/-init-.md @@ -2,7 +2,7 @@ # <init> -`Plain(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` +`Plain(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)` Represents the `text/plain` content type. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/index.md index 2dbf510..1ead4b6 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/-plain/index.md @@ -14,13 +14,13 @@ Represents the `text/plain` content type. | Name | Summary | |---|---| -| [<init>](-init-.md) | `Plain(charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/plain` content type. | +| [<init>](-init-.md) | `Plain(charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Represents the `text/plain` content type. | ### Inherited Properties | Name | Summary | |---|---| -| [charset](../charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](../charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](../id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/charset.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/charset.md index 7d5b7a4..ec51765 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/charset.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/charset.md @@ -2,7 +2,7 @@ # charset -`val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) +`val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html) charset of the content. `utf-8` by default. diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/index.md index c7f42e9..4e858b4 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-media-type/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-media-type/index.md @@ -5,7 +5,7 @@ `open class MediaType` Media type of the [request](../-request/index.md) or [response](../-response/index.md) body encoded in specified -[charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). +[charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). ### Parameters @@ -28,13 +28,13 @@ Media type of the [request](../-request/index.md) or [response](../-response/ind | Name | Summary | |---|---| -| [<init>](-init-.md) | `MediaType(id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Media type of the [request](../-request/index.md) or [response](../-response/index.md) body encoded in specified [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | +| [<init>](-init-.md) | `MediaType(id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`, charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)` = Charsets.UTF_8)`
Media type of the [request](../-request/index.md) or [response](../-response/index.md) body encoded in specified [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | ### Properties | Name | Summary | |---|---| -| [charset](charset.md) | `val charset: `[`Charset`](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | +| [charset](charset.md) | `val charset: `[`Charset`](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html)
charset of the content. `utf-8` by default. | | [id](id.md) | `val id: `[`String`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)
identifier of the content type. `application/json` as an example. | ### Functions diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/-with-body/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/-with-body/index.md index 50b88f5..b153e2a 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/-with-body/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/-with-body/index.md @@ -2,7 +2,7 @@ # WithBody -`open class WithBody : `[`Configurator`](../index.md) +`open class WithBody : `[`Request.Configurator`](../index.md) DSL context for configuring the [Request](../../index.md) with [Body](../../../-body/index.md) @@ -35,5 +35,5 @@ DSL context for configuring the [Request](../../index.md) with [Body](../../../- | Name | Summary | |---|---| -| [convert](../../../../com.agoda.ninjato.misc/convert.md) | `fun `[`WithBody`](./index.md)`.convert(body: `[`T`](../../../../com.agoda.ninjato.misc/convert.md#T)`): `[`Body`](../../../-body/index.md) | -| [formUrlEncoded](../../../../com.agoda.ninjato.misc/form-url-encoded.md) | `fun `[`WithBody`](./index.md)`.formUrlEncoded(tail: `[`Parameters`](../../../-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../../../-body/index.md) | +| [convert](../../../../com.agoda.ninjato.misc/convert.md) | `fun `[`Request.Configurator.WithBody`](./index.md)`.convert(body: `[`T`](../../../../com.agoda.ninjato.misc/convert.md#T)`): `[`Body`](../../../-body/index.md) | +| [formUrlEncoded](../../../../com.agoda.ninjato.misc/form-url-encoded.md) | `fun `[`Request.Configurator.WithBody`](./index.md)`.formUrlEncoded(tail: `[`Parameters`](../../../-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../../../-body/index.md) | diff --git a/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/index.md b/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/index.md index ffba3fd..67748e5 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/-request/-configurator/index.md @@ -10,7 +10,7 @@ DSL context for configuring the [Request](../index.md). | Name | Summary | |---|---| -| [WithBody](-with-body/index.md) | `open class WithBody : `[`Configurator`](./index.md)
DSL context for configuring the [Request](../index.md) with [Body](../../-body/index.md) | +| [WithBody](-with-body/index.md) | `open class WithBody : `[`Request.Configurator`](./index.md)
DSL context for configuring the [Request](../index.md) with [Body](../../-body/index.md) | ### Constructors @@ -42,4 +42,4 @@ DSL context for configuring the [Request](../index.md). | Name | Summary | |---|---| -| [WithBody](-with-body/index.md) | `open class WithBody : `[`Configurator`](./index.md)
DSL context for configuring the [Request](../index.md) with [Body](../../-body/index.md) | +| [WithBody](-with-body/index.md) | `open class WithBody : `[`Request.Configurator`](./index.md)
DSL context for configuring the [Request](../index.md) with [Body](../../-body/index.md) | diff --git a/docs/ninjato-core/com.agoda.ninjato.http/index.md b/docs/ninjato-core/com.agoda.ninjato.http/index.md index 2ddb280..871efd7 100644 --- a/docs/ninjato-core/com.agoda.ninjato.http/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.http/index.md @@ -6,11 +6,11 @@ | Name | Summary | |---|---| -| [Body](-body/index.md) | `class Body`
Body entity of every [request](-request/index.md) and [response](-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](http://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | +| [Body](-body/index.md) | `class Body`
Body entity of every [request](-request/index.md) and [response](-response/index.md). Stores the actual body value as [byte array](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-byte-array/index.html) but can transform it to [string](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) and [stream](https://docs.oracle.com/javase/6/docs/api/java/io/InputStream.html) | | [Cookies](-cookies/index.md) | `class Cookies`
DSL context for adding cookies to the headers of [request](-request/index.md). Supports addition of a single cookie with it's parameters. | | [Headers](-headers/index.md) | `class Headers`
DSL context for aggregating headers of [request](-request/index.md). Supports additions of single and iterable values of headers mapped to a key. | | [HttpClient](-http-client/index.md) | `abstract class HttpClient : `[`Commons`](../com.agoda.ninjato.dsl/-commons/index.md)
Abstraction of http client. Takes the top level in the cascade of [commons](../com.agoda.ninjato.dsl/-commons/index.md) DSL features. Executes generated requests[Request](-request/index.md) and returns [responses](-response/index.md) in synchronous manner. | -| [MediaType](-media-type/index.md) | `open class MediaType`
Media type of the [request](-request/index.md) or [response](-response/index.md) body encoded in specified [charset](http://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | +| [MediaType](-media-type/index.md) | `open class MediaType`
Media type of the [request](-request/index.md) or [response](-response/index.md) body encoded in specified [charset](https://docs.oracle.com/javase/6/docs/api/java/nio/charset/Charset.html). | | [Method](-method/index.md) | `sealed class Method`
Method of the http [request](-request/index.md). | | [Parameters](-parameters/index.md) | `class Parameters`
DSL context for aggregating query parameters of [request](-request/index.md). Supports additions of single value of parameter mapped to a key. | | [Request](-request/index.md) | `open class Request`
Base http entity of the library. Translates into the actual http request by [HttpClient](-http-client/index.md). | diff --git a/docs/ninjato-core/com.agoda.ninjato.misc/convert.md b/docs/ninjato-core/com.agoda.ninjato.misc/convert.md index a86d359..49f2d2e 100644 --- a/docs/ninjato-core/com.agoda.ninjato.misc/convert.md +++ b/docs/ninjato-core/com.agoda.ninjato.misc/convert.md @@ -2,4 +2,4 @@ # convert -`inline fun `[`WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.convert(body: `[`T`](convert.md#T)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) \ No newline at end of file +`inline fun `[`Request.Configurator.WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.convert(body: `[`T`](convert.md#T)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.misc/form-url-encoded.md b/docs/ninjato-core/com.agoda.ninjato.misc/form-url-encoded.md index aa113d5..5efbc63 100644 --- a/docs/ninjato-core/com.agoda.ninjato.misc/form-url-encoded.md +++ b/docs/ninjato-core/com.agoda.ninjato.misc/form-url-encoded.md @@ -2,4 +2,4 @@ # formUrlEncoded -`inline fun `[`WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.formUrlEncoded(tail: `[`Parameters`](../com.agoda.ninjato.http/-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) \ No newline at end of file +`inline fun `[`Request.Configurator.WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.formUrlEncoded(tail: `[`Parameters`](../com.agoda.ninjato.http/-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) \ No newline at end of file diff --git a/docs/ninjato-core/com.agoda.ninjato.misc/index.md b/docs/ninjato-core/com.agoda.ninjato.misc/index.md index 0b6affd..5e651f6 100644 --- a/docs/ninjato-core/com.agoda.ninjato.misc/index.md +++ b/docs/ninjato-core/com.agoda.ninjato.misc/index.md @@ -6,5 +6,5 @@ | Name | Summary | |---|---| -| [convert](convert.md) | `fun `[`WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.convert(body: `[`T`](convert.md#T)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) | -| [formUrlEncoded](form-url-encoded.md) | `fun `[`WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.formUrlEncoded(tail: `[`Parameters`](../com.agoda.ninjato.http/-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) | +| [convert](convert.md) | `fun `[`Request.Configurator.WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.convert(body: `[`T`](convert.md#T)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) | +| [formUrlEncoded](form-url-encoded.md) | `fun `[`Request.Configurator.WithBody`](../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.formUrlEncoded(tail: `[`Parameters`](../com.agoda.ninjato.http/-parameters/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Body`](../com.agoda.ninjato.http/-body/index.md) | diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/delete.md b/docs/ninjato-core/com.agoda.ninjato/-api/delete.md index 49419ff..41e6d7e 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/delete.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/delete.md @@ -2,7 +2,7 @@ # delete -`inline fun delete(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T) +`inline fun delete(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T) Executes the DELETE request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/get.md b/docs/ninjato-core/com.agoda.ninjato/-api/get.md index c345c34..28e8b0d 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/get.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/get.md @@ -2,7 +2,7 @@ # get -`inline fun get(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T) +`inline fun get(configurator: `[`Request.Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T) Executes the GET request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/head.md b/docs/ninjato-core/com.agoda.ninjato/-api/head.md index 46e7dad..72a25d2 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/head.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/head.md @@ -2,7 +2,7 @@ # head -`inline fun head(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T) +`inline fun head(configurator: `[`Request.Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T) Executes the HEAD request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/index.md b/docs/ninjato-core/com.agoda.ninjato/-api/index.md index a28f7a3..897af2d 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/index.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/index.md @@ -35,14 +35,14 @@ Provides access to the DSL of call functions. | Name | Summary | |---|---| -| [delete](delete.md) | `fun delete(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T)
Executes the DELETE request with the provided configuration. | -| [get](get.md) | `fun get(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T)
Executes the GET request with the provided configuration. | -| [head](head.md) | `fun head(configurator: `[`Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T)
Executes the HEAD request with the provided configuration. | +| [delete](delete.md) | `fun delete(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](delete.md#T)
Executes the DELETE request with the provided configuration. | +| [get](get.md) | `fun get(configurator: `[`Request.Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](get.md#T)
Executes the GET request with the provided configuration. | +| [head](head.md) | `fun head(configurator: `[`Request.Configurator`](../../com.agoda.ninjato.http/-request/-configurator/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](head.md#T)
Executes the HEAD request with the provided configuration. | | [invoke](invoke.md) | `operator fun invoke(receiver: `[`Api`](./index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | -| [options](options.md) | `fun options(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T)
Executes the OPTIONS request with the provided configuration. | -| [patch](patch.md) | `fun patch(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T)
Executes the PATCH request with the provided configuration. | -| [post](post.md) | `fun post(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T)
Executes the POST request with the provided configuration. | -| [put](put.md) | `fun put(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T)
Executes the PUT request with the provided configuration. | +| [options](options.md) | `fun options(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T)
Executes the OPTIONS request with the provided configuration. | +| [patch](patch.md) | `fun patch(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T)
Executes the PATCH request with the provided configuration. | +| [post](post.md) | `fun post(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T)
Executes the POST request with the provided configuration. | +| [put](put.md) | `fun put(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T)
Executes the PUT request with the provided configuration. | ### Inherited Functions diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/options.md b/docs/ninjato-core/com.agoda.ninjato/-api/options.md index 6aed2c5..af507e9 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/options.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/options.md @@ -2,7 +2,7 @@ # options -`inline fun options(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T) +`inline fun options(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](options.md#T) Executes the OPTIONS request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/patch.md b/docs/ninjato-core/com.agoda.ninjato/-api/patch.md index 79c4490..e935f13 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/patch.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/patch.md @@ -2,7 +2,7 @@ # patch -`inline fun patch(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T) +`inline fun patch(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](patch.md#T) Executes the PATCH request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/post.md b/docs/ninjato-core/com.agoda.ninjato/-api/post.md index c9e3f0b..3c2d8e3 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/post.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/post.md @@ -2,7 +2,7 @@ # post -`inline fun post(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T) +`inline fun post(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](post.md#T) Executes the POST request with the provided configuration. diff --git a/docs/ninjato-core/com.agoda.ninjato/-api/put.md b/docs/ninjato-core/com.agoda.ninjato/-api/put.md index 09347e6..7194698 100644 --- a/docs/ninjato-core/com.agoda.ninjato/-api/put.md +++ b/docs/ninjato-core/com.agoda.ninjato/-api/put.md @@ -2,7 +2,7 @@ # put -`inline fun put(configurator: `[`WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T) +`inline fun put(configurator: `[`Request.Configurator.WithBody`](../../com.agoda.ninjato.http/-request/-configurator/-with-body/index.md)`.() -> `[`Unit`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)`): `[`T`](put.md#T) Executes the PUT request with the provided configuration. diff --git a/docs/ninjato-core/index.md b/docs/ninjato-core/index.md index 12dc386..a501687 100644 --- a/docs/ninjato-core/index.md +++ b/docs/ninjato-core/index.md @@ -8,7 +8,6 @@ | [com.agoda.ninjato.converter](com.agoda.ninjato.converter/index.md) | | | [com.agoda.ninjato.dsl](com.agoda.ninjato.dsl/index.md) | | | [com.agoda.ninjato.exception](com.agoda.ninjato.exception/index.md) | | -| [com.agoda.ninjato.extension](com.agoda.ninjato.extension/index.md) | | | [com.agoda.ninjato.http](com.agoda.ninjato.http/index.md) | | | [com.agoda.ninjato.intercept](com.agoda.ninjato.intercept/index.md) | | | [com.agoda.ninjato.misc](com.agoda.ninjato.misc/index.md) | | diff --git a/docs/ninjato-core/package-list b/docs/ninjato-core/package-list index 4617b31..10b93d0 100644 --- a/docs/ninjato-core/package-list +++ b/docs/ninjato-core/package-list @@ -5,7 +5,6 @@ com.agoda.ninjato com.agoda.ninjato.converter com.agoda.ninjato.dsl com.agoda.ninjato.exception -com.agoda.ninjato.extension com.agoda.ninjato.http com.agoda.ninjato.intercept com.agoda.ninjato.misc diff --git a/extensions/extension-call/src/main/kotlin/com/agoda/ninjato/extension/call/CallExtensions.kt b/extensions/extension-call/src/main/kotlin/com/agoda/ninjato/extension/call/CallExtensions.kt index cd7cd09..a853209 100644 --- a/extensions/extension-call/src/main/kotlin/com/agoda/ninjato/extension/call/CallExtensions.kt +++ b/extensions/extension-call/src/main/kotlin/com/agoda/ninjato/extension/call/CallExtensions.kt @@ -1,7 +1,6 @@ package com.agoda.ninjato.extension.call import com.agoda.ninjato.Api -import com.agoda.ninjato.extension.Wrapper /** * Wraps the network call with [Call]. If no exceptions were thrown, the inferred return type will be @@ -11,8 +10,8 @@ import com.agoda.ninjato.extension.Wrapper * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.call(crossinline receiver: Wrapper.() -> T): Call = try { - Call.Success(receiver(object : Wrapper(this) {})) +inline fun Api.call(crossinline receiver: Api.() -> T): Call = try { + Call.Success(receiver(this)) } catch (throwable: Throwable) { Call.Failure(throwable) } diff --git a/extensions/extension-rxjava/src/main/kotlin/com/agoda/ninjato/extension/rxjava/RxExtensions.kt b/extensions/extension-rxjava/src/main/kotlin/com/agoda/ninjato/extension/rxjava/RxExtensions.kt index 5160b3f..a611832 100644 --- a/extensions/extension-rxjava/src/main/kotlin/com/agoda/ninjato/extension/rxjava/RxExtensions.kt +++ b/extensions/extension-rxjava/src/main/kotlin/com/agoda/ninjato/extension/rxjava/RxExtensions.kt @@ -1,7 +1,6 @@ package com.agoda.ninjato.extension.rxjava import com.agoda.ninjato.Api -import com.agoda.ninjato.extension.Wrapper import rx.Completable import rx.Observable import rx.Single @@ -12,8 +11,8 @@ import rx.Single * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.completable(crossinline receiver: Wrapper.() -> Unit): Completable = Completable.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.completable(crossinline receiver: Api.() -> Unit): Completable = Completable.fromCallable { + receiver(this) } /** @@ -22,8 +21,8 @@ inline fun Api.completable(crossinline receiver: Wrapper.() -> Unit): Comp * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.single(crossinline receiver: Wrapper.() -> T): Single = Single.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.single(crossinline receiver: Api.() -> T): Single = Single.fromCallable { + receiver(this) } /** @@ -32,6 +31,6 @@ inline fun Api.single(crossinline receiver: Wrapper.() -> T): Sin * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.observable(crossinline receiver: Wrapper.() -> T): Observable = Observable.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.observable(crossinline receiver: Api.() -> T): Observable = Observable.fromCallable { + receiver(this) } diff --git a/extensions/extension-rxjava2/src/main/kotlin/com/agoda/ninjato/extension/rxjava2/RxExtensions.kt b/extensions/extension-rxjava2/src/main/kotlin/com/agoda/ninjato/extension/rxjava2/RxExtensions.kt index 49452f8..2a4132e 100644 --- a/extensions/extension-rxjava2/src/main/kotlin/com/agoda/ninjato/extension/rxjava2/RxExtensions.kt +++ b/extensions/extension-rxjava2/src/main/kotlin/com/agoda/ninjato/extension/rxjava2/RxExtensions.kt @@ -1,7 +1,6 @@ package com.agoda.ninjato.extension.rxjava2 import com.agoda.ninjato.Api -import com.agoda.ninjato.extension.Wrapper import io.reactivex.Completable import io.reactivex.Flowable import io.reactivex.Observable @@ -13,8 +12,8 @@ import io.reactivex.Single * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.completable(crossinline receiver: Wrapper.() -> Unit): Completable = Completable.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.completable(crossinline receiver: Api.() -> Unit): Completable = Completable.fromCallable { + receiver(this) } /** @@ -23,8 +22,8 @@ inline fun Api.completable(crossinline receiver: Wrapper.() -> Unit): Comp * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.single(crossinline receiver: Wrapper.() -> T): Single = Single.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.single(crossinline receiver: Api.() -> T): Single = Single.fromCallable { + receiver(this) } /** @@ -33,8 +32,8 @@ inline fun Api.single(crossinline receiver: Wrapper.() -> T): Sin * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.observable(crossinline receiver: Wrapper.() -> T): Observable = Observable.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.observable(crossinline receiver: Api.() -> T): Observable = Observable.fromCallable { + receiver(this) } /** @@ -43,7 +42,7 @@ inline fun Api.observable(crossinline receiver: Wrapper.() -> T): * * @param receiver tail lambda with the actual API call invocation. */ -inline fun Api.flowable(crossinline receiver: Wrapper.() -> T): Flowable = Flowable.fromCallable { - receiver(object : Wrapper(this) {}) +inline fun Api.flowable(crossinline receiver: Api.() -> T): Flowable = Flowable.fromCallable { + receiver(this) } diff --git a/gradle/scripts/dependencies.gradle b/gradle/scripts/dependencies.gradle index 993520f..55f2f5c 100644 --- a/gradle/scripts/dependencies.gradle +++ b/gradle/scripts/dependencies.gradle @@ -1,9 +1,9 @@ ext.versions = [ - kotlin : '1.3.31', - android : '3.3.1', + kotlin : '1.3.40', + android : '3.4.1', androidMaven : '3.6.2', - dokka : '0.9.17', - coroutines : '1.1.0', + dokka : '0.9.18', + coroutines : '1.2.2', okhttp3 : '3.12.0', gson : '2.8.5', retrofit : '2.5.0', @@ -13,8 +13,8 @@ ext.versions = [ mockito : '2.21.0', mockitoKotlin : '1.6.0', rxjava : '1.3.8', - rxjava2 : '2.2.7', - ninjato : '0.2.3' + rxjava2 : '2.2.10', + ninjato : '0.3.0' ] ext.androidVersions = [ diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index e5f5102..dc35757 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Mar 01 13:58:16 ICT 2019 +#Wed Jun 26 11:01:38 ICT 2019 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip diff --git a/ninjato-core/src/main/kotlin/com/agoda/ninjato/extension/Wrapper.kt b/ninjato-core/src/main/kotlin/com/agoda/ninjato/extension/Wrapper.kt deleted file mode 100644 index dc08459..0000000 --- a/ninjato-core/src/main/kotlin/com/agoda/ninjato/extension/Wrapper.kt +++ /dev/null @@ -1,93 +0,0 @@ -package com.agoda.ninjato.extension - -import com.agoda.ninjato.Api -import com.agoda.ninjato.http.Request - -/** - * This class allows contributors to write wrapper-like extension functions. - * - * In current release of Kotlin, the compiler cannot auto-cast the inferred type inside inlined lambdas. - * - * It means that you still have to manually specify the reified type if you're calling such a function inside - * a lambda that is being passed to another reified inline function and their types are the same. - * - * Here's the example of usage: - * - * ``` - * inline fun Api.observable(crossinline receiver: Wrapper.() -> T): Observable = Observable.fromCallable { - * receiver(object : Wrapper(this) {}) - * } - * - * class YourApi : Api { - * fun search(query: String): Observable = observable { - * get { - * ... - * } - * } - * } - * ``` - * - * Without such a wrapper class, you would have to manually specify your type that actually can be inferred: - * - * ``` - * class YourApi : Api { - * fun search(query: String): Observable = observable { - * get { - * ... - * } - * } - * } - * ``` - * - * @param api instance of the [Api] to wrap around. - */ -abstract class Wrapper(@PublishedApi internal val api: Api) { - /** - * Executes the GET request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun get(configurator: Request.Configurator.() -> Unit): T = api.get(configurator) - - /** - * Executes the HEAD request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun head(configurator: Request.Configurator.() -> Unit): T = api.head(configurator) - - /** - * Executes the POST request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun post(configurator: Request.Configurator.WithBody.() -> Unit): T = api.post(configurator) - - /** - * Executes the PUT request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun put(configurator: Request.Configurator.WithBody.() -> Unit): T = api.put(configurator) - - /** - * Executes the DELETE request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun delete(configurator: Request.Configurator.WithBody.() -> Unit): T = api.delete(configurator) - - /** - * Executes the OPTIONS request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun options(configurator: Request.Configurator.WithBody.() -> Unit): T = api.options(configurator) - - /** - * Executes the PATCH request with the provided configuration. - * - * @param configurator the configuration of a [Request] - */ - inline fun patch(configurator: Request.Configurator.WithBody.() -> Unit): T = api.patch(configurator) -}