Searched refs:ContentType (Results 1 – 12 of 12) sorted by relevance
/openbmc/bmcweb/test/include/ |
H A D | http_utility_test.cpp | 16 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 D | http_utility.hpp | 30 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 D | forward_unauthorized.hpp | 28 accept, http_helpers::ContentType::HTML, false /*allowWildcard*/)) in sendUnauthorized()
|
/openbmc/bmcweb/http/ |
H A D | complete_response_fields.hpp | 31 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 D | parsing.hpp | 27 http_helpers::ContentType::JSON; in isJsonContentType()
|
H A D | http_connection.hpp | 305 http_helpers::ContentType::EventStream, false); in doUpgrade()
|
/openbmc/linux/crypto/asymmetric_keys/ |
H A D | mscode.asn1 | 14 contentType ContentType, 23 ContentType ::= OBJECT IDENTIFIER ({ mscode_note_content_type })
|
H A D | pkcs7.asn1 | 2 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 D | concurrencytest.py | 35 from testtools.content_type import ContentType 141 …kwargs["details"]["extraresults"] = Content(ContentType("application", "json", {'charset': 'utf8'}…
|
/openbmc/qemu/tests/unit/ |
H A D | pkix_asn1_tab.c.inc | 844 {"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 D | systems_logservices_postcodes.hpp | 510 http_helpers::ContentType::OctetStream, true)) in handleSystemsLogServicesPostCodesEntriesEntryAdditionalDataGet()
|
H A D | log_services.hpp | 2298 http_helpers::ContentType::OctetStream, true)) in handleDBusEventLogEntryDownloadGet()
|