Home
last modified time | relevance | path

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

/openbmc/bmcweb/test/include/
H A Dhttp_utility_test.cpp16 EXPECT_TRUE(isContentTypeAllowed("*/*", ContentType::HTML, true)); in TEST()
18 ContentType::OctetStream, false)); in TEST()
19 EXPECT_TRUE(isContentTypeAllowed("text/html", ContentType::HTML, false)); in TEST()
21 isContentTypeAllowed("application/json", ContentType::JSON, false)); in TEST()
23 isContentTypeAllowed("application/cbor", ContentType::CBOR, false)); in TEST()
25 ContentType::HTML, false)); in TEST()
31 ContentType::HTML, false)); in TEST()
33 isContentTypeAllowed("application/html", ContentType::JSON, false)); in TEST()
35 isContentTypeAllowed("application/json", ContentType::CBOR, false)); in TEST()
37 isContentTypeAllowed("application/cbor", ContentType::HTML, false)); in TEST()
[all …]
/openbmc/bmcweb/include/
H A Dhttp_utility.hpp30 enum class ContentType enum
41 inline ContentType getContentType(std::string_view contentTypeHeader) in getContentType()
52 const symbols<ContentType> knownMimeType{ in getContentType()
53 {"application/cbor", ContentType::CBOR}, in getContentType()
54 {"application/json", ContentType::JSON}, in getContentType()
55 {"application/octet-stream", ContentType::OctetStream}, in getContentType()
56 {"text/event-stream", ContentType::EventStream}, in getContentType()
57 {"text/html", ContentType::HTML}}; in getContentType()
59 ContentType ct = ContentType::NoMatch; in getContentType()
69 return ContentType::NoMatch; in getContentType()
[all …]
H A Dforward_unauthorized.hpp28 accept, http_helpers::ContentType::HTML, false /*allowWildcard*/)) in sendUnauthorized()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp31 using http_helpers::ContentType; in completeResponseFields()
32 std::array<ContentType, 3> allowed{ContentType::CBOR, ContentType::JSON, in completeResponseFields()
33 ContentType::HTML}; in completeResponseFields()
34 ContentType preferred = getPreferredContentType(accepts, allowed); in completeResponseFields()
36 if (preferred == ContentType::HTML) in completeResponseFields()
40 else if (preferred == ContentType::CBOR) in completeResponseFields()
H A Dparsing.hpp27 http_helpers::ContentType::JSON; in isJsonContentType()
H A Dhttp_connection.hpp305 http_helpers::ContentType::EventStream, false); in doUpgrade()
/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.hpp510 http_helpers::ContentType::OctetStream, true)) in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
H A Dlog_services.hpp2298 http_helpers::ContentType::OctetStream, true)) in handleDBusEventLogEntryDownloadGet()