Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
IContentHeader.cs
1using System;
3using System.Security.Cryptography.X509Certificates;
4using System.Threading.Tasks;
6
7namespace Waher.Content
8{
13 public interface IContentHeader
14 {
18 string[] UriSchemes
19 {
20 get;
21 }
22
29 bool CanHead(Uri Uri, out Grade Grade);
30
39 Task<ContentResponse> HeadAsync(Uri Uri, X509Certificate Certificate,
40 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
41 params KeyValuePair<string, string>[] Headers);
42
52 Task<ContentResponse> HeadAsync(Uri Uri, X509Certificate Certificate,
53 EventHandler<RemoteCertificateEventArgs> RemoteCertificateValidator,
54 int TimeoutMs, params KeyValuePair<string, string>[] Headers);
55 }
56}
Basic interface for Internet Content headers. A class implementing this interface and having a defaul...
string[] UriSchemes
Supported URI schemes.
Task< ContentResponse > HeadAsync(Uri Uri, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Gets the headers of a resource, using a Uniform Resource Identifier (or Locator).
Task< ContentResponse > HeadAsync(Uri Uri, X509Certificate Certificate, EventHandler< RemoteCertificateEventArgs > RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers)
Gets the headers of a resource, using a Uniform Resource Identifier (or Locator).
bool CanHead(Uri Uri, out Grade Grade)
If the getter is able to get headers of a resource, given its URI.
Grade
Grade enumeration
Definition: Grade.cs:7