net.lakis.cerebro.web.cgi.request.BodyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cerebro Show documentation
Show all versions of cerebro Show documentation
A framework to handle dependency injection and allowing users to communicate with the application
using command line.
The newest version!
package net.lakis.cerebro.web.cgi.request;
import java.io.IOException;
import net.lakis.cerebro.web.cgi.enumerations.FcgiType;
import net.lakis.cerebro.web.cgi.enumerations.FcgiVersion;
public class BodyRequest extends FcgiRequest {
byte[] content;
public BodyRequest(FcgiVersion version, FcgiType type, int requestId, byte[] content) {
super(version, type, requestId);
this.content = content;
}
@Override
protected byte[] toByteArray() throws IOException {
return content;
}
}