Session
data class Session(    val client: ApiClient,     val httpClient: HttpClient,     val credentials: Credentials,     val option: ApiConfig,     shouldCloseHttpClient: Boolean) : Closeable
Content copied to clipboard
Penicillin Session instance. Provides HttpClient, credentials, options.
Constructors
Functions
Properties
Extensions
Link copied to clipboard
                fun Session.delete(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates DELETE api request.
Link copied to clipboard
                fun Session.get(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates GET api request.
Link copied to clipboard
                fun Session.head(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates HEAD api request.
Link copied to clipboard
                fun Session.options(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates OPTIONS api request.
Link copied to clipboard
                fun Session.patch(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates PATCH api request.
Link copied to clipboard
                fun Session.post(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates POST api request.
Link copied to clipboard
                fun Session.put(    path: String,     host: EndpointHost = EndpointHost.Default,     builder: ApiRequestBuilder.() -> Unit = {}): ApiRequest
Content copied to clipboard
Creates PUT api request.