com.iprogrammerr.gentle.request.binary.HeadBodyPattern Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gentle-request Show documentation
Show all versions of gentle-request Show documentation
Compact library for creating and reading http requests.
The newest version!
package com.iprogrammerr.gentle.request.binary;
public final class HeadBodyPattern implements BinaryPattern {
private final BinaryPattern base;
private HeadBodyPattern(BinaryPattern base) {
this.base = base;
}
public HeadBodyPattern() {
this(new ConfigurablePattern("\r\n\r\n".getBytes()));
}
@Override
public byte[] value() {
return this.base.value();
}
@Override
public int index(byte[] content) {
return this.base.index(content);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy