Table of Contents

Class HeaderLinkExtractor

Namespace
TypedRest.Links
Assembly
TypedRest.dll

Extracts links from HTTP headers.

public class HeaderLinkExtractor : ILinkExtractor
Inheritance
HeaderLinkExtractor
Implements
Inherited Members

Methods

Extracts links from the response.

public Task<IReadOnlyList<Link>> GetLinksAsync(HttpResponseMessage response)

Parameters

response HttpResponseMessage

Returns

Task<IReadOnlyList<Link>>

Exceptions

FormatException

One or more of the links found are invalid (e.g. missing a 'rel' type).