All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mike10004.vhs.bmp.RequestCapture Maven / Gradle / Ivy

There is a newer version: 0.32
Show newest version
package io.github.mike10004.vhs.bmp;

import io.github.mike10004.vhs.harbridge.ParsedRequest;
import io.netty.handler.codec.http.HttpVersion;

import static java.util.Objects.requireNonNull;

public final class RequestCapture {

    public final HttpVersion httpVersion;
    public final ParsedRequest request;

    private RequestCapture(HttpVersion httpVersion, ParsedRequest request) {
        this.httpVersion = requireNonNull(httpVersion);
        this.request = requireNonNull(request);
    }

    public static RequestCapture of(HttpVersion httpVersion, ParsedRequest fullCapturedRequest) {
        return new RequestCapture(httpVersion, fullCapturedRequest);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy