public class GeminiResponse extends Message
Message.AbstractBuilder<R extends Message,B extends Message.AbstractBuilder<R,B>>| Constructor and Description |
|---|
GeminiResponse(int status,
String meta,
MessageBody body) |
| Modifier and Type | Method and Description |
|---|---|
MediaType |
contentType()
The media type of the body.
|
String |
meta() |
static GeminiResponse |
parse(ReadableByteChannel channel,
ByteBuffer buffer) |
byte[] |
serializeHeader()
Serializes the message header.
|
int |
status() |
int |
statusHttpEquivalent()
Returns the HTTP equivalent of the status code.
|
public GeminiResponse(int status,
String meta,
MessageBody body)
public static GeminiResponse parse(ReadableByteChannel channel, ByteBuffer buffer) throws IOException
IOExceptionpublic int status()
public int statusHttpEquivalent()
public String meta()
public byte[] serializeHeader()
MessageserializeHeader in class Messagepublic MediaType contentType()
MessageReturns "application/octet-stream" if the Content-Type header is missing.
contentType in class MessageCopyright © 2024. All rights reserved.