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
[Repo Assist] Add Http.ParseLinkHeader utility for RFC 5988 Link headers (#1675)
* Add Http.ParseLinkHeader utility for RFC 5988 Link headers
Adds a new static method Http.ParseLinkHeader that parses the 'Link'
response header (RFC 5988) into a Map<string, string> from relation
type to URL. This is useful for consuming paginated REST APIs such as
GitHub, GitLab, etc. that use Link headers to provide next/prev/last
page URLs.
Also adds documentation in Http.fsx showing a complete pagination
example using JsonProvider and ParseLinkHeader together.
Closes#805
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* ci: trigger CI checks
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,7 @@
2
2
3
3
## 8.1.0-beta
4
4
5
+
- Add `Http.ParseLinkHeader` utility for parsing RFC 5988 `Link` response headers (used by GitHub, GitLab, and other paginated APIs) into a `Map<string, string>` from relation name to URL (closes #805)
5
6
- Add `PreferDateTimeOffset` parameter to `CsvProvider`, `JsonProvider`, and `XmlProvider`: when true, date-time values without an explicit timezone offset are inferred as `DateTimeOffset` (using local offset) instead of `DateTime` (closes #1100, #1072)
6
7
- Make `Http.AppendQueryToUrl` public (closes #1325)
7
8
- Add `PreferOptionals` parameter to `JsonProvider` and `XmlProvider` (defaults to `true` to match existing behavior; set to `false` to use empty string or `NaN` for missing values, like the CsvProvider default) (closes #649)
0 commit comments