toggle menu
methanol-parent
1.8.2-SNAPSHOT
jvm
switch theme
kotlin
com.
github.
mizosoft.
methanol.
samples.
kotlin
Caching
Client
Coroutines
Example
Get
Post
Json
Markdown
Repository
Get
Post
String
Interceptors
Logging
Interceptor
main()
Multipart
And
Form
Uploads
Image
Imgur
Response
methanol.
adapter.
moshi
com.
github.
mizosoft.
methanol.
adapter.
moshi
Javadoc
Placeholder
Moshi
Adapter
Companion
methanol.
kotlin
com.
github.
mizosoft.
methanol.
kotlin
Adapter
Codec()
Adapter
Codec
Spec
Base
Request
Spec
body()
Body
Handler
Body
Handlers
Body
Publisher
Body
Publishers
Body
Subscriber
Body
Subscribers
Cache
Cache()
Cache
Chain
Cache
Chain()
Cache
Chain
Spec
Cache
Control()
Cache
Control
Spec
Cache
Listener
Cache
Spec
Client
Client()
Client
Spec
close()
closeable()
delete()
Factory
Spec
fetch()
Form
Body
Form
Body()
Form
Body
Spec
get()
get
With()
handler
Of()
Headers
Headers()
Headers
Spec
Hints
Spec
Http
Version
Interceptor
Chain
Interceptors
Spec
is
Client
Error()
is
Informational()
is
Redirection()
is
Server
Error()
is
Successful()
Javadoc
Placeholder
Kotlin
Adapter
Companion
Multipart
Body
Multipart
Body()
Multipart
Body
Part
Multipart
Body
Part()
Multipart
Body
Spec
Pair
Creation
Disabling
Spec
patch()
post()
Push
Promise
Handler
put()
Redirect
Request
Request()
Request
Body
Spec
Request
Method
Spec
Request
Spec
Request
With
Known
Method
Spec
Response
Response
Info
Spec
String
Name
Multi
String
Value
Spec
subscriber
Of()
tag()
Tags
Spec
to()
to
Cache
Control()
to
Http
String()
to
Media
Type()
to
Taggable
Request()
Type
Ref()
with
Media
Type()
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>
)