类 Request


  • public class Request
    extends Object
    Http request
    作者:
    Liu Dong
    • 方法详细资料

      • method

        public Method method()
      • cookies

        public List<Cookie> cookies()
        The cookie set by user.
      • userAgent

        public Optional<String> userAgent()
        The user set user-agent (in Client or in Request). If not any custom user-agent was set, return empty optional.
      • referer

        public Optional<String> referer()
        The referer set by user. If not any custom user-agent was set, return empty optional.
      • paramCharset

        public Charset paramCharset()
        The charset used to encode params to url query string.
      • acceptCompressed

        public boolean acceptCompressed()
      • url

        public URL url()
      • params

        public List<Param> params()
        Parameter to append to url.