
io.github.hapjava.server.impl.http.HttpResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hap Show documentation
Show all versions of hap Show documentation
Homekit Accessory Protocol for Java
package io.github.hapjava.server.impl.http;
import java.nio.ByteBuffer;
import java.util.Collections;
import java.util.Map;
public interface HttpResponse {
int getStatusCode();
default ByteBuffer getBody() {
return ByteBuffer.allocate(0);
}
default HttpVersion getVersion() {
return HttpVersion.HTTP_1_1;
}
default Map getHeaders() {
return Collections.emptyMap();
}
default boolean doUpgrade() {
return false;
}
public enum HttpVersion {
HTTP_1_1,
EVENT_1_0
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy