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;
2using System.Collections.Generic;
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<object> HeadAsync(Uri Uri, X509Certificate Certificate,
40 RemoteCertificateEventHandler RemoteCertificateValidator,
41 params KeyValuePair<string, string>[] Headers);
42
52 Task<object> HeadAsync(Uri Uri, X509Certificate Certificate,
53 RemoteCertificateEventHandler 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...
Task< object > HeadAsync(Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers)
Gets the headers of a resource, using a Uniform Resource Identifier (or Locator).
string[] UriSchemes
Supported URI schemes.
Task< object > HeadAsync(Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler 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.
delegate void RemoteCertificateEventHandler(object Sender, RemoteCertificateEventArgs e)
Delegate for remote certificate event handlers.
Grade
Grade enumeration
Definition: Grade.cs:7