接口 HttpRequest

所有超级接口:
HttpMessage
所有已知子接口:
ClientHttpRequest, ServerHttpRequest, ServerHttpRequest
所有已知实现类:
AbstractBufferingClientHttpRequest, AbstractClientHttpRequest, AbstractServerHttpRequest, AbstractStreamingClientHttpRequest, BufferingClientHttpRequestWrapper, ContextExposingRequestContext, DecoratingRequestContext, DefaultServerHttpRequestBuilder.MutatedServerHttpRequest, DefaultServerRequest.CheckNotModifiedResponse, HttpComponentsClientHttpRequest, HttpRequestDecorator, InterceptingClientHttpRequest, JdkClientHttpRequest, JettyClientHttpRequest, ReactorNetty2ServerHttpRequest, ReactorNettyClientRequest, ReactorServerHttpRequest, RequestContext, RequestContextDecorator, RequestContextUtils.InjectableRequestContext, RequestPartServerHttpRequest, ServerHttpRequestDecorator, ServletRequestContext, ServletServerHttpRequest, ServletServerHttpRequest, SimpleClientHttpRequest, TomcatHttpHandlerAdapter.TomcatServerHttpRequest, UndertowServerHttpRequest

public interface HttpRequest extends HttpMessage
Represents an HTTP request message, consisting of method and uri.
从以下版本开始:
4.0
作者:
Arjen Poutsma, Harry Yang
  • 方法概要

    修饰符和类型
    方法
    说明
    Return the HTTP method of the request.
    default String
    Return the HTTP method of the request as a String value.
    Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).

    从接口继承的方法 cn.taketoday.http.HttpMessage

    getHeaders
  • 方法详细资料

    • getMethod

      HttpMethod getMethod()
      Return the HTTP method of the request.
      返回:
      the HTTP method as an HttpMethod value
      另请参阅:
    • getMethodValue

      default String getMethodValue()
      Return the HTTP method of the request as a String value.
      返回:
      the HTTP method as a plain String
      另请参阅:
    • getURI

      URI getURI()
      Return the URI of the request (including a query string if any, but only if it is well-formed for a URI representation).
      返回:
      the URI of the request (never null)