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

io.github.mike10004.vhs.EntryMatcher Maven / Gradle / Ivy

package io.github.mike10004.vhs;

import io.github.mike10004.vhs.harbridge.ParsedRequest;

import javax.annotation.Nullable;

/**
 * Interface that defines a method to determine how to respond to
 * an HTTP request.
 */
public interface EntryMatcher {

    /**
     * Finds the best response for a given HTTP request.
     * @param request the request
     * @return the response that matches best, or null if none matches well enough
     */
    @Nullable
    HttpRespondable findTopEntry(ParsedRequest request);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy