com.jdroid.java.http.okhttp.patch.OkPatchHttpService.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jdroid-java-http-okhttp Show documentation
Show all versions of jdroid-java-http-okhttp Show documentation
OKHttp Http Layer Implementation for Jdroid
The newest version!
package com.jdroid.java.http.okhttp.patch
import com.jdroid.java.http.HttpMethod
import com.jdroid.java.http.HttpServiceProcessor
import com.jdroid.java.http.Server
import com.jdroid.java.http.okhttp.OkBodyEnclosingHttpService
import okhttp3.Request
import okhttp3.RequestBody
class OkPatchHttpService(server: Server, urlSegments: List, httpServiceProcessors: List) :
OkBodyEnclosingHttpService(server, urlSegments, httpServiceProcessors) {
override fun onConfigureRequestBuilder(builder: Request.Builder, requestBody: RequestBody?) {
builder.patch(requestBody!!)
}
override fun getHttpMethod(): HttpMethod {
return HttpMethod.PATCH
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy