1. 30 1月, 2017 1 次提交
  2. 17 1月, 2017 1 次提交
  3. 21 12月, 2016 1 次提交
  4. 17 12月, 2016 2 次提交
    • R
      getAcceptLanguageAsLocale(s) returns most preferred Locale · bd8af55b
      Rossen Stoyanchev 提交于
      An update on the last commit switching from:
      List<Locale> getAcceptLanguageAsLocales() to
      Locale getAcceptLanguageAsLocale()
      
      This best supports the scenario for the most preferred Locale.
      If there is a need to look at the prioritized list of languages it's
      best to use Locale.filter with the LocaleRange's.
      
      This is explained in the Javadoc for getAcceptLanguage().
      
      Issue: SPR-15024
      bd8af55b
    • R
      Add getAcceptLanguageAsLocales · fa56361a
      Rossen Stoyanchev 提交于
      The use of Locale.LanguageRange for the Accept-Language header makes
      sense as it gives the most flexibility for a client to set a weighted
      list and for a server to do filtering via Locale#filter.
      
      This commit adds an additional convenience method that turns
      the LangugeRange list to a list of Locale's also filtering out a
      wildcard (i.e. "*"). A List<Locale> is the most basic way to access
      prefered languages and needed when filtering is not required.
      
      Issue: SPR-15024
      fa56361a
  5. 16 12月, 2016 2 次提交
  6. 08 11月, 2016 1 次提交
    • S
      Introduce HttpHeaders get/setContentDisposition() · 99a8510a
      Sebastien Deleuze 提交于
      This commit introduces a new ContentDisposition class designed
      to parse and generate Content-Disposition header value as defined
      in RFC 2183. It supports the disposition type and the name,
      filename (or filename* when encoded according to RFC 5987) and
      size parameters.
      
      This new class is usually used thanks to
      HttpHeaders#getContentDisposition() and
      HttpHeaders#setContentDisposition(ContentDisposition).
      
      Issue: SPR-14408
      99a8510a
  7. 22 9月, 2016 1 次提交
  8. 31 8月, 2016 2 次提交
  9. 26 8月, 2016 1 次提交
  10. 25 8月, 2016 2 次提交
    • A
      Added Host property to HttpHeaders · ab7107c4
      Arjen Poutsma 提交于
      Added getHost/setHost to HttpHeaders, returning/taking a
      InetSocketAddress.
      ab7107c4
    • B
      Add RFC5987 support for HTTP header field params · f2faf84f
      Brian Clozel 提交于
      This commit adds support for HTTP header field parameters encoding, as
      described in RFC5987.
      Note that the default implementation still relies on US-ASCII encoding,
      as the latest rfc7230 Section 3.2.4 says that:
      
      > Newly defined header fields SHOULD limit their field values to
        US-ASCII octets
      
      Issue: SPR-14547
      f2faf84f
  11. 24 8月, 2016 1 次提交
  12. 23 7月, 2016 1 次提交
  13. 05 7月, 2016 1 次提交
  14. 27 6月, 2016 1 次提交
  15. 06 5月, 2016 1 次提交
  16. 29 4月, 2016 1 次提交
    • B
      Improve multi-valued HTTP headers support · 55dae618
      Brian Clozel 提交于
      Prior to this change, getting header values with `HttpHeaders` when
      headers are multi-valued would cause issues.
      For example, for a given HTTP message with headers:
          Cache-Control: public, s-maxage=50
          Cache-Control: max-age=42
      
      Getting a `List` of all values would return <"public", "s-maxage=50">
      and getting the header value would return "public, s-maxage=50".
      
      This commit takes now into account multi-valued HTTP headers and adds
      new getters/setters for "If-Match" and "If-Unmodified-Since" headers.
      
      Note that for ETag-related headers such as "If-Match" and
      "If-None-Match", a special parser has been implemented since ETag values
      can contain separator characters.
      
      Issue: SPR-14223, SPR-14228
      55dae618
  17. 11 4月, 2016 1 次提交
  18. 06 4月, 2016 1 次提交
  19. 23 3月, 2016 1 次提交
  20. 09 12月, 2015 1 次提交
  21. 22 7月, 2015 1 次提交
  22. 15 7月, 2015 1 次提交
  23. 05 5月, 2015 1 次提交
    • S
      Make DefaultCorsProcessor Servlet 2.5 compliant · 83f269b5
      Sebastien Deleuze 提交于
      This commit adds CORS related headers to HttpHeaders
      and update DefaultCorsProcessor implementation to
      use ServerHttpRequest and ServerHttpResponse instead
      of HttpServletRequest and HttpServletResponse. Usage
      of ServerHttpResponse allows to avoid using Servlet 3.0
      specific methods in order keep CORS support Servlet 2.5
      compliant.
      
      Issue: SPR-12885
      83f269b5
  24. 21 3月, 2015 1 次提交
    • A
      Support byte ranges in ResourceHttpRequestHandler · da487396
      Arjen Poutsma 提交于
      This commit introduces support for HTTP byte ranges in the
      ResourceHttpRequestHandler. This support consists of a number of
      changes:
      
      - Parsing of HTTP Range headers in HttpHeaders, using a new HttpRange
        class and inner ByteRange/SuffixByteRange subclasses.
      - MIME boundary generation moved from FormHttpMessageConverter to
        MimeTypeUtils.
      - writePartialContent() method introduced in ResourceHttpRequestHandler,
        handling the byte range logic
      - Additional partial content tests added to
        ResourceHttpRequestHandlerTests.
      
      Issue: SPR-10805
      da487396
  25. 31 12月, 2014 1 次提交
  26. 22 10月, 2014 1 次提交
  27. 14 10月, 2014 1 次提交
  28. 13 10月, 2014 1 次提交
  29. 12 9月, 2014 1 次提交
  30. 05 8月, 2014 1 次提交
  31. 01 7月, 2014 1 次提交
  32. 26 6月, 2014 1 次提交
    • B
      HttpHeaders fails getAllow if set to EmptyCollection · 9919a982
      Brian Clozel 提交于
      Prior to this commit, calls to getAllow would fail is setAllow was set
      to an EmptyCollection right before.
      
          java.lang.IllegalArgumentException: No enum constant
          org.springframework.http.HttpMethod
      
      This commit fixes this by testing the header value for an empty value
      before trying to use it to get a value from the Enum.
      
      Issue: SPR-11917
      9919a982
  33. 02 5月, 2014 1 次提交
  34. 06 3月, 2014 1 次提交
    • R
      Improve CORS handling in AbstractSockJsService · 49d7bda7
      Rossen Stoyanchev 提交于
      After this change, AbstractSockJsService does not add CORS headers if
      the response already contains an "Access-Control-Allow-Origin" header.
      Essentially it backs off assuming CORS headers are handled centrally
      e.g. through a Filter.
      
      In order to support this, the ServletServerHttpResponse now returns an
      instance of HttpHeaders that also provides access to headers already
      present in the HttpServletResponse.
      
      Issue: SPR-11443
      49d7bda7
  35. 17 12月, 2013 1 次提交
  36. 26 11月, 2013 1 次提交
    • P
      Fix remaining compiler warnings · 59002f24
      Phillip Webb 提交于
      Fix remaining Java compiler warnings, mainly around missing
      generics or deprecated code.
      
      Also add the `-Werror` compiler option to ensure that any future
      warnings will fail the build.
      
      Issue: SPR-11064
      59002f24