You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
HttpHeaders is added addDate(String headerName, long date) method.
MockHttpServletResponse delegates setDateHeader(String name, long value) and addDateHeader(String name, long value) to HttpHeaders#setDate() / HttpHeaders#addDate() correspondingly.
MockHttpServletRequest delegates getDateHeader(String name) to HttpHeaders#getFirstZonedDateTime(String headerName, boolean rejectInvalid).
Dmitry Katsubo opened SPR-16312 and commented
MockHttpServletRequest
has this:MockHttpServletResponse
has this:HttpHeaders
has this:To optimize above:
HttpHeaders
is addedaddDate(String headerName, long date)
method.MockHttpServletResponse
delegatessetDateHeader(String name, long value)
andaddDateHeader(String name, long value)
toHttpHeaders#setDate()
/HttpHeaders#addDate()
correspondingly.MockHttpServletRequest
delegatesgetDateHeader(String name)
toHttpHeaders#getFirstZonedDateTime(String headerName, boolean rejectInvalid)
.Affects: 5.0.1
Issue Links:
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: