Interface ExpectValidator

Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ExpectValidator
A validator that is used when the server receives a header of Expect: 100-continue during the initial request.
Author:
Brian Pontarelli
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    validate(HTTPRequest request, HTTPResponse response)
    Performs the validation of the request headers and puts a valid response code into the response.
  • Method Details

    • validate

      void validate(HTTPRequest request, HTTPResponse response)
      Performs the validation of the request headers and puts a valid response code into the response. This should generally be a 100 or an error of some type.

      All headers in the response will be ignored and the OutputStream should not be used.

      Parameters:
      request - The request.
      response - The response.