Interface FormCapableHttpRequest<B>

Type Parameters:
B - The body type
All Superinterfaces:
AttributeHolder, HttpMessage<B>, HttpRequest<B>, LifecycleHttpRequest<B>, MutableAttributeHolder, ServerHttpRequest<B>
All Known Implementing Classes:
NettyHttpRequest

public interface FormCapableHttpRequest<B> extends ServerHttpRequest<B>, LifecycleHttpRequest<B>
A request that is capable of parsing form data, though the request does not necessarily have to contain form data.
  • Method Details

    • getRawFormFields

      Publisher<RawFormField> getRawFormFields() throws IllegalStateException
      Get the raw form field publisher. Can only be subscribed to once.
      Returns:
      The raw form fields
      Throws:
      IllegalStateException - If this request does not contain a form body
    • hasFormBody

      boolean hasFormBody()
      Check whether this request contains a form body (url encoded or multipart).
      Returns:
      true if this is a form request