Package club.minnced.discord.webhook
Class IOUtil.OctetBody
- java.lang.Object
-
- okhttp3.RequestBody
-
- club.minnced.discord.webhook.IOUtil.OctetBody
-
- Enclosing class:
- IOUtil
public static class IOUtil.OctetBody extends RequestBody
Wrapper for anIOUtil.OCTET
request body
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class okhttp3.RequestBody
RequestBody.Companion
-
-
Field Summary
-
Fields inherited from class okhttp3.RequestBody
Companion
-
-
Constructor Summary
Constructors Constructor Description OctetBody(@org.jetbrains.annotations.NotNull byte[] data)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaType
contentType()
void
writeTo(okio.BufferedSink sink)
-
-
-
Method Detail
-
contentType
public MediaType contentType()
- Specified by:
contentType
in classRequestBody
-
writeTo
public void writeTo(okio.BufferedSink sink) throws IOException
- Specified by:
writeTo
in classRequestBody
- Throws:
IOException
-
-