mirror of
https://github.com/foss42/apidash.git
synced 2025-06-27 19:07:40 +08:00
Added Kotlin OkHttp Tests and refactoring.
This commit is contained in:
@ -69,6 +69,8 @@ val body = "${requestModel.requestBody}".toRequestBody(mediaType)\n""";
|
||||
requestModel.method != HTTPVerb.head &&
|
||||
requestModel.method != HTTPVerb.delete) {
|
||||
result = """$result .${requestModel.method.name}(body)\n""";
|
||||
} else if (requestModel.method == HTTPVerb.head) {
|
||||
result = """$result .${requestModel.method.name}()\n""";
|
||||
}
|
||||
if (requestModel.method == HTTPVerb.delete) {
|
||||
result = """$result .method("DELETE", body)\n""";
|
||||
|
Reference in New Issue
Block a user