toggle menu
methanol-parent
1.8.0-SNAPSHOT
jvm
switch theme
search in API
methanol.kotlin
/
com.github.mizosoft.methanol.kotlin
/
RequestWithKnownMethodSpec
Request
With
Known
Method
Spec
@
Spec
interface
RequestWithKnownMethodSpec
:
BaseRequestSpec
,
RequestBodySpec
A
spec
for configuring a
Request
whose method has been set
Members
Members & Extensions
Functions
adapter
Codec
Link copied to clipboard
abstract
fun
adapterCodec
(
adapterCodec
:
AdapterCodec
)
abstract
fun
adapterCodec
(
block
:
AdapterCodecSpec
.
(
)
->
Unit
)
body
Link copied to clipboard
abstract
fun
body
(
bodyPublisher
:
<Error class: unknown class>
)
abstract
fun
body
(
payload
:
Any
,
mediaType
:
MediaType
)
body
Link copied to clipboard
inline
fun
<
T
>
RequestBodySpec
.
body
(
payload
:
T
,
mediaType
:
MediaType
)
cache
Control
Link copied to clipboard
abstract
fun
cacheControl
(
cacheControl
:
CacheControl
)
abstract
fun
cacheControl
(
block
:
CacheControlSpec
.
(
)
->
Unit
)
expect
Continue
Link copied to clipboard
abstract
fun
expectContinue
(
expectContinue
:
Boolean
)
form
Body
Link copied to clipboard
abstract
fun
formBody
(
block
:
FormBodySpec
.
(
)
->
Unit
)
headers
Link copied to clipboard
abstract
fun
headers
(
block
:
HeadersSpec
.
(
)
->
Unit
)
hints
Link copied to clipboard
abstract
fun
hints
(
block
:
HintsSpec
.
(
)
->
Unit
)
multipart
Body
Link copied to clipboard
abstract
fun
multipartBody
(
block
:
MultipartBodySpec
.
(
)
->
Unit
)
tags
Link copied to clipboard
abstract
fun
tags
(
block
:
TagsSpec
.
(
)
->
Unit
)
timeout
Link copied to clipboard
abstract
fun
timeout
(
timeout
:
Duration
)
uri
Link copied to clipboard
abstract
fun
uri
(
uri
:
URI
)
abstract
fun
uri
(
uri
:
String
)
version
Link copied to clipboard
abstract
fun
version
(
version
:
<Error class: unknown class>
)