Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
InternetMediaTypeRegistry.h File Reference
#include "Stroika/Foundation/StroikaPreComp.h"
#include <filesystem>
#include <optional>
#include "Stroika/Foundation/Characters/String.h"
#include "Stroika/Foundation/Containers/Mapping.h"
#include "Stroika/Foundation/Containers/Set.h"
#include "Stroika/Foundation/DataExchange/InternetMediaType.h"
#include "Stroika/Foundation/DataExchange/InternetMediaTypeNotSupportedException.h"
#include "Stroika/Foundation/Execution/Synchronized.h"
#include "Stroika/Foundation/Memory/SharedByValue.h"
#include "InternetMediaTypeRegistry.inl"

Go to the source code of this file.

Classes

class  Stroika::Foundation::DataExchange::InternetMediaTypeRegistry
 
struct  Stroika::Foundation::DataExchange::InternetMediaTypeRegistry::OverrideRecord
 
struct  Stroika::Foundation::DataExchange::InternetMediaTypeRegistry::IBackendRep
 for OS facilities not updatable - or controllable - just usable. More...
 
struct  Stroika::Foundation::DataExchange::InternetMediaTypeRegistry::IFrontendRep_
 alternative to IBackendRep - which can be updated/amended. More...
 

Namespaces

namespace  Stroika::Foundation
 
namespace  Stroika::Foundation::DataExchange
 
namespace  Stroika::Foundation::DataExchange::InternetMediaTypes::Types
 

Variables

const InternetMediaType::AtomType Stroika::Foundation::DataExchange::InternetMediaTypes::Types::kApplication {"application"sv}
 'application'
 
const InternetMediaType::AtomType Stroika::Foundation::DataExchange::InternetMediaTypes::Types::kAudio {"audio"sv}
 'audio'
 
const InternetMediaType::AtomType Stroika::Foundation::DataExchange::InternetMediaTypes::Types::kImage {"image"sv}
 'image'
 
const InternetMediaType::AtomType Stroika::Foundation::DataExchange::InternetMediaTypes::Types::kText {"text"sv}
 'text'
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kAudio {Types::kAudio, {}}
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kImage {Types::kImage, {}}
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kText {Types::kText, {}}
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kOctetStream {Types::kApplication, "octet-stream"sv}
 application/octet-stream
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kAudioMP3 {Types::kAudio, "mp3"sv}
 audio/mp3
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kAudioMP4 {Types::kAudio, "mp4"sv}
 audio/mp4
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kAudioWAV {Types::kAudio, "x-wav"sv}
 audio/x-wav
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kPNG {Types::kImage, "png"sv}
 image/png
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kGIF {Types::kImage, "gif"sv}
 image/gif
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kJPEG {Types::kImage, "jpeg"sv}
 image/jpeg
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kHTML {Types::kText, "html"sv}
 text/html
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kJavascript {Types::kText, "javascript"sv}
 text/javascript
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kCSS {Types::kText, "css"sv}
 text/css
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kText_PLAIN {Types::kText, "plain"sv}
 text/plain
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kCSV {Types::kText, "csv"sv}
 text/cvs
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kJSON {Types::kApplication, "json"sv}
 application/json
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kJSONPatch {Types::kApplication, "json-patch"sv, "json"sv}
 json-patch+json
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kWWWFormURLEncoded {Types::kApplication, "x-www-form-urlencoded"sv}
 application/x-www-form-urlencoded
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kPDF {Types::kApplication, "pdf"sv}
 application/pdf
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kURL {Types::kText, "uri-list"sv}
 text/uri-list (
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kXML {Types::kApplication, "xml"sv}
 application/xml (
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kXSLT {Types::kApplication, "x-xslt"sv}
 application/x-xslt
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kRTF {Types::kApplication, "rtf"sv}
 
const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kZip {Types::kApplication, "zip"sv}
 application/zip
 

Detailed Description

Note
Code-Status: Beta

Definition in file InternetMediaTypeRegistry.h.

Variable Documentation

◆ kAudio

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kAudio {Types::kAudio, {}}

Generic audio content (used for IsA () primarily)

Definition at line 423 of file InternetMediaTypeRegistry.h.

◆ kImage

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kImage {Types::kImage, {}}

Generic image content (used for IsA () primarily)

Definition at line 428 of file InternetMediaTypeRegistry.h.

◆ kText

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::Wildcards::kText {Types::kText, {}}

Generic text content (used for IsA () primarily)

Definition at line 433 of file InternetMediaTypeRegistry.h.

◆ kJSONPatch

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kJSONPatch {Types::kApplication, "json-patch"sv, "json"sv}

json-patch+json

See also
https://datatracker.ietf.org/doc/html/rfc6902

Definition at line 508 of file InternetMediaTypeRegistry.h.

◆ kWWWFormURLEncoded

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kWWWFormURLEncoded {Types::kApplication, "x-www-form-urlencoded"sv}

application/x-www-form-urlencoded

See also
https://www.ietf.org/rfc/rfc1867.txt
https://www.ietf.org/rfc/rfc7578.txt

Definition at line 515 of file InternetMediaTypeRegistry.h.

◆ kURL

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kURL {Types::kText, "uri-list"sv}

text/uri-list (

See also
https://tools.ietf.org/html/rfc2483#section-5)
Note
until Stroika 2.1b2, this was defined as application/x-url

Definition at line 527 of file InternetMediaTypeRegistry.h.

◆ kXML

◆ kRTF

const InternetMediaType Stroika::Foundation::DataExchange::InternetMediaTypes::kRTF {Types::kApplication, "rtf"sv}

Microsoft RTF - Rich Text Format

Definition at line 548 of file InternetMediaTypeRegistry.h.