![]() |
Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
|
Static class managing encoding and decoding of internet content. More...
Static Public Member Functions | |
static bool | Encodes (object Object, out Grade Grade, out IContentEncoder Encoder, params string[] AcceptedContentTypes) |
If a given object can be encoded. More... | |
static byte[] | Encode (object Object, Encoding Encoding, out string ContentType, params string[] AcceptedContentTypes) |
Encodes an object. More... | |
static Task< KeyValuePair< byte[], string > > | EncodeAsync (object Object, Encoding Encoding, params string[] AcceptedContentTypes) |
Encodes an object. More... | |
static bool | IsAccepted (string ContentType, params string[] AcceptedContentTypes) |
Checks if a given content type is acceptable. More... | |
static bool | IsAccepted (string[] ContentTypes, params string[] AcceptedContentTypes) |
Checks if at least one content type in a set of content types is acceptable. More... | |
static bool | IsAccepted (string[] ContentTypes, out string ContentType, params string[] AcceptedContentTypes) |
Checks if at least one content type in a set of content types is acceptable. More... | |
static bool | Decodes (string ContentType, out Grade Grade, out IContentDecoder Decoder) |
If an object with a given content type can be decoded. More... | |
static object | Decode (string ContentType, byte[] Data, Encoding Encoding, KeyValuePair< string, string >[] Fields, Uri BaseUri) |
Decodes an object. More... | |
static Task< object > | DecodeAsync (string ContentType, byte[] Data, Encoding Encoding, KeyValuePair< string, string >[] Fields, Uri BaseUri) |
Decodes an object. More... | |
static object | Decode (string ContentType, byte[] Data, Uri BaseUri) |
Decodes an object. More... | |
static Task< object > | DecodeAsync (string ContentType, byte[] Data, Uri BaseUri) |
Decodes an object. More... | |
static Encoding | GetEncoding (string CharacterSet) |
Gets a character encoding from its name. More... | |
static string | GetContentType (string FileExtension) |
Gets the content type of an item, given its file extension. It uses the TryGetContentType to see if any of the content encoders/decoders support content with the corresponding file type. If no such encoder/decoder is found, the generic application/octet-stream type is returned. More... | |
static bool | TryGetContentType (string FileExtension, out string ContentType) |
Tries to get the content type of an item, given its file extension. More... | |
static string | GetFileExtension (string ContentType) |
Gets the file extension of an item, given its content type. It uses the TryGetFileExtension to see if any of the content encoders/decoders support content with the corresponding content type. If no such encoder/decoder is found, the generic bin extension is returned. More... | |
static bool | TryGetFileExtension (string ContentType, out string FileExtension) |
Tries to get the file extension of an item, given its content type. More... | |
static bool | CanConvert (string FromContentType, string ToContentType, out IContentConverter Converter) |
Checks if it is possible to convert content from one type to another. More... | |
static IContentConverter[] | GetConverters (string FromContentType) |
Gets available converters that can convert content from a given type. More... | |
static bool | CanGet (Uri Uri, out Grade Grade, out IContentGetter Getter) |
If a resource can be gotten, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< object > | GetAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static Task< KeyValuePair< string, TemporaryStream > > | GetTempStreamAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Gets a (possibly big) resource, given its URI. More... | |
static bool | CanPost (Uri Uri, out Grade Grade, out IContentPoster Poster) |
If a resource can be posted to, given its URI. More... | |
static Task< object > | PostAsync (Uri Uri, object Data, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PostAsync (Uri Uri, object Data, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PostAsync (Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PostAsync (Uri Uri, object Data, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PostAsync (Uri Uri, object Data, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PostAsync (Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PostAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Posts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static bool | CanPut (Uri Uri, out Grade Grade, out IContentPutter Putter) |
If a resource can be putted to, given its URI. More... | |
static Task< object > | PutAsync (Uri Uri, object Data, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PutAsync (Uri Uri, object Data, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PutAsync (Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PutAsync (Uri Uri, object Data, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PutAsync (Uri Uri, object Data, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | PutAsync (Uri Uri, object Data, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< KeyValuePair< byte[], string > > | PutAsync (Uri Uri, byte[] EncodedData, string ContentType, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Puts to a resource, using a Uniform Resource Identifier (or Locator). More... | |
static bool | CanDelete (Uri Uri, out Grade Grade, out IContentDeleter Deleter) |
If a resource can be deleted to, given its URI. More... | |
static Task< object > | DeleteAsync (Uri Uri, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | DeleteAsync (Uri Uri, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | DeleteAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | DeleteAsync (Uri Uri, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | DeleteAsync (Uri Uri, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static Task< object > | DeleteAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Deletes a resource, using a Uniform Resource Identifier (or Locator). More... | |
static bool | CanHead (Uri Uri, out Grade Grade, out IContentHeader Header) |
If the headers of a resource can be gotten, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, X509Certificate Certificate, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, X509Certificate Certificate, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
static Task< object > | HeadAsync (Uri Uri, X509Certificate Certificate, RemoteCertificateEventHandler RemoteCertificateValidator, int TimeoutMs, params KeyValuePair< string, string >[] Headers) |
Heads a resource, given its URI. More... | |
Static Public Attributes | |
static readonly Encoding | ISO_8859_1 = Encoding.GetEncoding("ISO-8859-1") |
ISO-8859-1 character encoding. More... | |
Properties | |
static string[] | CanEncodeContentTypes [get] |
Internet content types that can be encoded. More... | |
static string[] | CanEncodeFileExtensions [get] |
File extensions that can be encoded. More... | |
static IContentEncoder[] | Encoders [get] |
Available Internet Content Encoders. More... | |
static string[] | CanDecodeContentTypes [get] |
Internet content types that can be decoded. More... | |
static string[] | CanDecodeFileExtensions [get] |
File extensions that can be decoded. More... | |
static IContentDecoder[] | Decoders [get] |
Available Internet Content Decoders. More... | |
static IContentConverter[] | Converters [get] |
Available Internet Content Converters. More... | |
static string[] | CanGetUriSchemes [get] |
Internet URI Schemes that can be gotten. More... | |
static IContentGetter[] | Getters [get] |
Available Internet Content Getters. More... | |
static string[] | CanPostToUriSchemes [get] |
Internet URI Schemes that can be posted to. More... | |
static IContentPoster[] | Posters [get] |
Available Internet Content Posters. More... | |
static string[] | CanPutToUriSchemes [get] |
Internet URI Schemes that can be putted to. More... | |
static IContentPutter[] | Putters [get] |
Available Internet Content Putters. More... | |
static string[] | CanDeleteToUriSchemes [get] |
Internet URI Schemes that can be deleted to. More... | |
static IContentDeleter[] | Deleters [get] |
Available Internet Content Deleters. More... | |
static string[] | CanHeadUriSchemes [get] |
Internet URI Schemes where it is possible to get headers. More... | |
static IContentHeader[] | Headers [get] |
Available Internet Content Header-retrievers. More... | |
Static class managing encoding and decoding of internet content.
Definition at line 16 of file InternetContent.cs.
|
static |
Checks if it is possible to convert content from one type to another.
A shortest path algorithm maximizing conversion quality and shortening conversion distance is used to find sequences of converters, if a direct conversion is not possible.
FromContentType | Existing content type. |
ToContentType | Desired content type. |
Converter | Converter that transforms content from type FromContentType to type ToContentType . |
Definition at line 797 of file InternetContent.cs.
|
static |
If a resource can be deleted to, given its URI.
Uri | URI of resource. |
Grade | How well the deleted can delete to the resource. |
Deleter | Best deleter for the URI. |
Definition at line 2020 of file InternetContent.cs.
|
static |
If a resource can be gotten, given its URI.
Uri | URI of resource. |
Grade | How well the getter can get the resource. |
Getter | Best getter for the URI. |
Definition at line 1087 of file InternetContent.cs.
|
static |
If the headers of a resource can be gotten, given its URI.
Uri | URI of resource. |
Grade | How well the headers of the resource can be retrieved. |
Header | Best header-retriever for the URI. |
Definition at line 2236 of file InternetContent.cs.
|
static |
If a resource can be posted to, given its URI.
Uri | URI of resource. |
Grade | How well the posted can post to the resource. |
Poster | Best poster for the URI. |
Definition at line 1385 of file InternetContent.cs.
|
static |
If a resource can be putted to, given its URI.
Uri | URI of resource. |
Grade | How well the putted can put to the resource. |
Putter | Best putter for the URI. |
Definition at line 1704 of file InternetContent.cs.
|
static |
Decodes an object.
ContentType | Internet Content Type. |
Data | Encoded object. |
Encoding | Any encoding specified. Can be null if no encoding specified. |
Fields | Any content-type related fields and their corresponding values. |
BaseUri | Base URI, if any. If not available, value is null. |
ArgumentException | If the object cannot be decoded. |
Definition at line 532 of file InternetContent.cs.
|
static |
Decodes an object.
ContentType | Internet Content Type. |
Data | Encoded object. |
BaseUri | Base URI, if any. If not available, value is null. |
ArgumentException | If the object cannot be decoded. |
Definition at line 564 of file InternetContent.cs.
|
static |
Decodes an object.
ContentType | Internet Content Type. |
Data | Encoded object. |
Encoding | Any encoding specified. Can be null if no encoding specified. |
Fields | Any content-type related fields and their corresponding values. |
BaseUri | Base URI, if any. If not available, value is null. |
ArgumentException | If the object cannot be decoded. |
Definition at line 547 of file InternetContent.cs.
|
static |
Decodes an object.
ContentType | Internet Content Type. |
Data | Encoded object. |
BaseUri | Base URI, if any. If not available, value is null. |
ArgumentException | If the object cannot be decoded. |
Definition at line 577 of file InternetContent.cs.
|
static |
If an object with a given content type can be decoded.
ContentType | Content type to decode. |
Grade | How well the decoder decodes the object. |
Decoder | Best decoder for the object. |
Definition at line 488 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2102 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2061 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2115 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2073 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2129 of file InternetContent.cs.
|
static |
Deletes a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2086 of file InternetContent.cs.
|
static |
Encodes an object.
Object | Object to encode. |
Encoding | Desired encoding of text. Can be null if no desired encoding is speified. |
ContentType | Content Type of encoding. Includes information about any text encodings used. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
ArgumentException | If the object cannot be encoded. |
Definition at line 309 of file InternetContent.cs.
|
static |
Encodes an object.
Object | Object to encode. |
Encoding | Desired encoding of text. Can be null if no desired encoding is speified. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
ArgumentException | If the object cannot be encoded. |
Definition at line 324 of file InternetContent.cs.
|
static |
If a given object can be encoded.
Object | Object to encode. |
Grade | How well the object can be encoded. |
Encoder | Best encoder for the object. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
Definition at line 229 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1169 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1128 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1182 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1140 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1196 of file InternetContent.cs.
|
static |
Gets a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1153 of file InternetContent.cs.
|
static |
Gets the content type of an item, given its file extension. It uses the TryGetContentType to see if any of the content encoders/decoders support content with the corresponding file type. If no such encoder/decoder is found, the generic application/octet-stream type is returned.
FileExtension | File extension. |
Definition at line 652 of file InternetContent.cs.
|
static |
Gets available converters that can convert content from a given type.
FromContentType | From which content type converters have to convert. |
Definition at line 976 of file InternetContent.cs.
|
static |
Gets a character encoding from its name.
CharacterSet | Name of character set. |
Definition at line 606 of file InternetContent.cs.
|
static |
Gets the file extension of an item, given its content type. It uses the TryGetFileExtension to see if any of the content encoders/decoders support content with the corresponding content type. If no such encoder/decoder is found, the generic bin extension is returned.
ContentType | File Content-Type. |
Definition at line 714 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1252 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1211 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1265 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1223 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1279 of file InternetContent.cs.
|
static |
Gets a (possibly big) resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1236 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2318 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2277 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2331 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2289 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2345 of file InternetContent.cs.
|
static |
Heads a resource, given its URI.
Uri | Uniform resource identifier. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 2302 of file InternetContent.cs.
|
static |
Checks if a given content type is acceptable.
ContentType | Content type. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
Definition at line 337 of file InternetContent.cs.
|
static |
Checks if at least one content type in a set of content types is acceptable.
ContentTypes | Content types. |
ContentType | Content type selected as the first acceptable content type. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
Definition at line 361 of file InternetContent.cs.
|
static |
Checks if at least one content type in a set of content types is acceptable.
ContentTypes | Content types. |
AcceptedContentTypes | Optional array of accepted content types. If array is empty, all content types are accepted. |
Definition at line 350 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1565 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1517 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1580 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1531 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1597 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be posted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1547 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1471 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1427 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1485 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1440 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1500 of file InternetContent.cs.
|
static |
Posts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to post. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1454 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1883 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1836 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1898 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1850 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1914 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
EncodedData | Encoded data to be putted. |
ContentType | Content-Type of encoded data in EncodedData . |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1865 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1790 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1746 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1804 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1759 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
TimeoutMs | Timeout, in milliseconds. (Default=60000) |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1819 of file InternetContent.cs.
|
static |
Puts to a resource, using a Uniform Resource Identifier (or Locator).
Uri | URI |
Data | Data to put. |
Certificate | Optional client certificate to use in a Mutual TLS session. |
RemoteCertificateValidator | Optional validator of remote certificates. |
Headers | Optional headers. Interpreted in accordance with the corresponding URI scheme. |
Definition at line 1773 of file InternetContent.cs.
|
static |
Tries to get the content type of an item, given its file extension.
FileExtension | File extension. |
ContentType | Content type. |
Definition at line 666 of file InternetContent.cs.
|
static |
Tries to get the file extension of an item, given its content type.
ContentType | Content type. |
FileExtension | File extension. |
Definition at line 728 of file InternetContent.cs.
|
static |
ISO-8859-1 character encoding.
Definition at line 21 of file InternetContent.cs.
|
staticget |
Internet content types that can be decoded.
Definition at line 392 of file InternetContent.cs.
|
staticget |
File extensions that can be decoded.
Definition at line 419 of file InternetContent.cs.
|
staticget |
Internet URI Schemes that can be deleted to.
Definition at line 1930 of file InternetContent.cs.
|
staticget |
Internet content types that can be encoded.
Definition at line 132 of file InternetContent.cs.
|
staticget |
File extensions that can be encoded.
Definition at line 159 of file InternetContent.cs.
|
staticget |
Internet URI Schemes that can be gotten.
Definition at line 997 of file InternetContent.cs.
|
staticget |
Internet URI Schemes where it is possible to get headers.
Definition at line 2146 of file InternetContent.cs.
|
staticget |
Internet URI Schemes that can be posted to.
Definition at line 1295 of file InternetContent.cs.
|
staticget |
Internet URI Schemes that can be putted to.
Definition at line 1614 of file InternetContent.cs.
|
staticget |
Available Internet Content Converters.
Definition at line 775 of file InternetContent.cs.
|
staticget |
Available Internet Content Decoders.
Definition at line 446 of file InternetContent.cs.
|
staticget |
Available Internet Content Deleters.
Definition at line 1957 of file InternetContent.cs.
|
staticget |
Available Internet Content Encoders.
Definition at line 186 of file InternetContent.cs.
|
staticget |
Available Internet Content Getters.
Definition at line 1024 of file InternetContent.cs.
|
staticget |
Available Internet Content Header-retrievers.
Definition at line 2173 of file InternetContent.cs.
|
staticget |
Available Internet Content Posters.
Definition at line 1322 of file InternetContent.cs.
|
staticget |
Available Internet Content Putters.
Definition at line 1641 of file InternetContent.cs.