yde
1.3.0
jvm
yde
/
io.github.ydwk.yde.impl.rest.type
/
SimilarRestApiImpl
Similar
Rest
Api
Impl
open
class
SimilarRestApiImpl
(
yde
:
YDEImpl
,
builder
:
Request.Builder
,
client
:
OkHttpClient
)
:
SimilarRestApi
(
source
)
Inheritors
DeleteRestApiImpl
GetRestApiImpl
PatchRestApiImpl
PostRestApiImpl
PutRestApiImpl
Members
Constructors
Similar
Rest
Api
Impl
Link copied to clipboard
constructor
(
yde
:
YDEImpl
,
builder
:
Request.Builder
,
client
:
OkHttpClient
)
Functions
add
Header
Link copied to clipboard
open
override
fun
addHeader
(
name
:
String
,
value
:
String
)
:
SimilarRestApi
add
Reason
Link copied to clipboard
open
override
fun
addReason
(
reason
:
String
?
)
:
SimilarRestApi
error
Link copied to clipboard
fun
<
T
:
Any
>
error
(
body
:
ResponseBody
,
code
:
Int
,
function
:
Function
<
CompletableFutureManager
,
T
>
?
,
noResult
:
NoResult
?
)
execute
Link copied to clipboard
open
override
fun
execute
(
)
open
override
fun
<
T
:
Any
>
execute
(
function
:
Function
<
CompletableFutureManager
,
T
>
)
:
CompletableDeferred
<
T
>
execute
With
No
Result
Link copied to clipboard
open
override
fun
executeWithNoResult
(
)
:
CompletableDeferred
<
NoResult
>
header
Link copied to clipboard
open
override
fun
header
(
name
:
String
,
value
:
String
)
:
SimilarRestApi
headers
Link copied to clipboard
open
override
fun
headers
(
headers
:
Headers
)
:
SimilarRestApi
remove
Header
Link copied to clipboard
open
override
fun
removeHeader
(
name
:
String
)
:
SimilarRestApi
Properties
response
Body
Link copied to clipboard
var
responseBody
:
ResponseBody
?