kohttp / io.github.rybalkinsd.kohttp.interceptors / SigningInterceptor

SigningInterceptor

class SigningInterceptor : Interceptor

Request Signing Interceptor

Enables signing of query parameters.

Parameters

parameterName - the name of the parameter with signed key

signer - function with HttpUrl as a receiver to sign the request parameter

See Also

HttpUrl.Builder.addQueryParameter

Since
0.8.0

Author
gokul

Constructors

<init>

SigningInterceptor(parameterName: String, signer: HttpUrl.() -> String)

Request Signing Interceptor

Functions

intercept

fun intercept(chain: Chain): Response