Home
last modified time | relevance | path

Searched refs:ContentType (Results 1 – 11 of 11) sorted by relevance

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp54 std::array<ContentType, 1> contentType{ContentType::HTML}; in TEST()
57 ContentType::HTML); in TEST()
59 std::array<ContentType, 2> htmlJson{ContentType::HTML, ContentType::JSON}; in TEST()
61 ContentType::HTML); in TEST()
63 std::array<ContentType, 2> jsonHtml{ContentType::JSON, ContentType::HTML}; in TEST()
65 ContentType::HTML); in TEST()
67 std::array<ContentType, 2> cborJson{ContentType::CBOR, ContentType::JSON}; in TEST()
70 ContentType::CBOR); in TEST()
73 ContentType::JSON); in TEST()
79 std::array<ContentType, 1> contentType{ContentType::CBOR}; in TEST()
[all …]
/openbmc/bmcweb/include/
H A Dhttp_utility.hpp16 enum class ContentType enum
30 ContentType contentTypeEnum;
34 {"application/cbor", ContentType::CBOR},
35 {"application/json", ContentType::JSON},
36 {"application/octet-stream", ContentType::OctetStream},
37 {"text/html", ContentType::HTML},
38 {"text/event-stream", ContentType::EventStream},
41 inline ContentType getPreferredContentType( in getPreferredContentType()
70 return ContentType::ANY; in getPreferredContentType()
92 return ContentType::NoMatch; in getPreferredContentType()
[all …]
H A Dforward_unauthorized.hpp22 accept, http_helpers::ContentType::HTML, false /*allowWildcard*/)) in sendUnauthorized()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp29 using http_helpers::ContentType; in completeResponseFields()
30 std::array<ContentType, 3> allowed{ContentType::CBOR, ContentType::JSON, in completeResponseFields()
31 ContentType::HTML}; in completeResponseFields()
32 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()
34 if (preferred == ContentType::HTML) in completeResponseFields()
38 else if (preferred == ContentType::CBOR) in completeResponseFields()
H A Dhttp_connection.hpp309 http_helpers::ContentType::EventStream, false); in handle()
/openbmc/linux/crypto/asymmetric_keys/
H A Dmscode.asn114 contentType ContentType,
23 ContentType ::= OBJECT IDENTIFIER ({ mscode_note_content_type })
H A Dpkcs7.asn12 contentType ContentType ({ pkcs7_check_content_type }),
6 ContentType ::= OBJECT IDENTIFIER ({ pkcs7_note_OID })
24 contentType ContentType ({ pkcs7_note_OID }),
/openbmc/openbmc/poky/meta/lib/oeqa/core/utils/
H A Dconcurrencytest.py35 from testtools.content_type import ContentType
141 …kwargs["details"]["extraresults"] = Content(ContentType("application", "json", {'charset': 'utf8'}…
/openbmc/qemu/tests/unit/
H A Dpkix_asn1_tab.c.inc844 {"contentType", 1073741826, "pkcs-7-ContentType"},
852 {"pkcs-7-ContentType", 1073741836, 0},
872 {"eContentType", 1073741826, "pkcs-7-ContentType"},
1046 {"contentType", 1073741826, "pkcs-7-ContentType"},
/openbmc/bmcweb/redfish-core/lib/
H A Dsystems_logservices_postcodes.hpp476 http_helpers::ContentType::OctetStream, true)) in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
H A Dlog_services.hpp2346 http_helpers::ContentType::OctetStream, true)) in handleDBusEventLogEntryDownloadGet()