Add Foundation.HTTPURLResponse.date(forDateValue:) This function accepts an HTTP-date string and parses it into a Date object. HTTPURLResponse.date has been refactored to use the new function. The unit tests have been simplified using this new function as well.
Add Foundation.HTTPURLResponse.date(forDateValue:)
This function accepts an HTTP-date string and parses it into a Date object.
HTTPURLResponse.date has been refactored to use the new function.
The unit tests have been simplified using this new function as well.
This package adds a date property to HTTPURLResponse, which can be used to retrieve the contents of the date header field. It is fully-compliant with RFC 2616, so it can be relied upon to work properly.
date
HTTPURLResponse
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
HTTP Response Date
This package adds a
date
property toHTTPURLResponse
, which can be used to retrieve the contents of thedate
header field. It is fully-compliant with RFC 2616, so it can be relied upon to work properly.