Home
last modified time | relevance | path

Searched refs:addHeader (Results 1 – 25 of 48) sorted by relevance

12

/openbmc/bmcweb/include/
H A Dsecurity_headers.hpp14 res.addHeader(bf::strict_transport_security, "max-age=31536000; " in addSecurityHeaders()
17 res.addHeader(bf::pragma, "no-cache"); in addSecurityHeaders()
21 res.addHeader(bf::cache_control, "no-store, max-age=0"); in addSecurityHeaders()
23 res.addHeader("X-Content-Type-Options", "nosniff"); in addSecurityHeaders()
28 res.addHeader(bf::x_frame_options, "DENY"); in addSecurityHeaders()
29 res.addHeader("Referrer-Policy", "no-referrer"); in addSecurityHeaders()
30 res.addHeader( in addSecurityHeaders()
61 res.addHeader("X-Permitted-Cross-Domain-Policies", "none"); in addSecurityHeaders()
63 res.addHeader("Cross-Origin-Opener-Policy", "same-origin"); in addSecurityHeaders()
64 res.addHeader("Cross-Origin-Resource-Policy", "same-origin"); in addSecurityHeaders()
[all …]
H A Dcookies.hpp12 res.addHeader(boost::beast::http::field::set_cookie, in setSessionCookies()
15 res.addHeader(boost::beast::http::field::set_cookie, in setSessionCookies()
22 res.addHeader(boost::beast::http::field::set_cookie, in clearSessionCookies()
26 res.addHeader("Clear-Site-Data", R"("cache","cookies","storage")"); in clearSessionCookies()
H A Dwebassets.hpp69 asyncResp->res.addHeader(boost::beast::http::field::content_type, in handleStaticAsset()
75 asyncResp->res.addHeader(boost::beast::http::field::content_encoding, in handleStaticAsset()
81 asyncResp->res.addHeader(boost::beast::http::field::etag, file.etag); in handleStaticAsset()
88 asyncResp->res.addHeader(boost::beast::http::field::cache_control, in handleStaticAsset()
H A Dforward_unauthorized.hpp30 res.addHeader(boost::beast::http::field::location, in sendUnauthorized()
57 res.addHeader(boost::beast::http::field::www_authenticate, "Basic"); in sendUnauthorized()
H A Dimage_upload.hpp30 asyncResp->res.addHeader("Retry-After", "30"); in uploadImageHandler()
/openbmc/bmcweb/test/include/
H A Dmultipart_test.cpp40 reqIn.addHeader("Content-Type", in TEST_F()
75 reqIn.addHeader("Content-Type", in TEST_F()
93 reqIn.addHeader("Content-Type", in TEST_F()
115 reqIn.addHeader("Content-Type", in TEST_F()
134 reqIn.addHeader("Content-Type", in TEST_F()
154 reqIn.addHeader("Content-Type", in TEST_F()
174 reqIn.addHeader("Content-Type", in TEST_F()
193 reqIn.addHeader("Content-Type", in TEST_F()
212 reqIn.addHeader("Content-Type", in TEST_F()
340 reqIn.addHeader( in TEST_F()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Daggregation_service.hpp28 asyncResp->res.addHeader( in handleAggregationServiceHead()
41 asyncResp->res.addHeader( in handleAggregationServiceGet()
98 asyncResp->res.addHeader( in handleAggregationSourceCollectionGet()
120 asyncResp->res.addHeader( in handleAggregationSourceCollectionHead()
144 asyncResp->res.addHeader( in populateAggregationSource()
208 asyncResp->res.addHeader( in handleAggregationSourceHead()
H A Dredfish_sessions.hpp65 asyncResp->res.addHeader( in handleSessionHead()
79 asyncResp->res.addHeader( in handleSessionGet()
165 asyncResp->res.addHeader( in handleSessionCollectionHead()
178 asyncResp->res.addHeader( in handleSessionCollectionGet()
271 asyncResp->res.addHeader("X-Auth-Token", session->sessionToken); in handleSessionCollectionPost()
274 asyncResp->res.addHeader( in handleSessionCollectionPost()
297 asyncResp->res.addHeader( in handleSessionServiceHead()
310 asyncResp->res.addHeader( in handleSessionServiceGet()
H A Denvironment_metrics.hpp35 asyncResp->res.addHeader( in handleEnvironmentMetricsHead()
62 asyncResp->res.addHeader( in handleEnvironmentMetricsGet()
H A Dpower_subsystem.hpp30 asyncResp->res.addHeader( in doPowerSubsystemCollection()
63 asyncResp->res.addHeader( in handlePowerSubsystemCollectionHead()
H A Dthermal_subsystem.hpp31 asyncResp->res.addHeader( in doThermalSubsystemCollection()
71 asyncResp->res.addHeader( in handleThermalSubsystemCollectionHead()
H A Dservice_root.hpp42 asyncResp->res.addHeader( in handleServiceRootHead()
50 asyncResp->res.addHeader( in handleServiceRootGetImpl()
H A Dfabric_adapters.hpp168 asyncResp->res.addHeader( in doAdapterGet()
309 asyncResp->res.addHeader( in handleFabricAdapterCollectionGet()
349 asyncResp->res.addHeader( in handleFabricAdapterCollectionHead()
378 asyncResp->res.addHeader( in afterHandleFabricAdapterHead()
H A Dthermal_metrics.hpp126 asyncResp->res.addHeader( in doThermalMetrics()
159 asyncResp->res.addHeader( in handleThermalMetricsHead()
H A Dfan.hpp93 asyncResp->res.addHeader( in doFanCollection()
129 asyncResp->res.addHeader( in handleFanCollectionHead()
222 resp.addHeader(boost::beast::http::field::link, in addFanCommonProperties()
418 asyncResp->res.addHeader( in handleFanHead()
H A Dpower_supply.hpp65 asyncResp->res.addHeader( in doPowerSupplyCollection()
101 asyncResp->res.addHeader( in handlePowerSupplyCollectionHead()
459 asyncResp->res.addHeader( in doPowerSupplyGet()
494 asyncResp->res.addHeader( in handlePowerSupplyHead()
H A Dnetwork_protocol.hpp178 asyncResp->res.addHeader( in getNetworkData()
482 asyncResp->res.addHeader( in handleBmcNetworkProtocolHead()
573 asyncResp->res.addHeader( in handleManagersNetworkProtocolHead()
592 asyncResp->res.addHeader( in handleManagersNetworkProtocolGet()
H A Daccount_service.hpp1206 asyncResp->res.addHeader( in handleAccountServiceHead()
1235 asyncResp->res.addHeader( in handleAccountServiceClientCertificatesInstanceHead()
1269 asyncResp->res.addHeader( in handleAccountServiceClientCertificatesHead()
1342 asyncResp->res.addHeader( in handleAccountServiceGet()
1676 asyncResp->res.addHeader( in handleAccountCollectionHead()
1696 asyncResp->res.addHeader( in handleAccountCollectionGet()
1807 asyncResp->res.addHeader("Location", in processAfterCreateUser()
1960 asyncResp->res.addHeader( in handleAccountHead()
1974 asyncResp->res.addHeader( in handleAccountGet()
H A Dmetadata.hpp111 asyncResp->res.addHeader(boost::beast::http::field::content_type, in handleMetadataGet()
H A Dpcie.hpp128 asyncResp->res.addHeader(boost::beast::http::field::link, in handlePCIeDeviceCollectionGet()
540 asyncResp->res.addHeader( in addPCIeDeviceCommonProperties()
665 asyncResp->res.addHeader( in handlePCIeFunctionCollectionGet()
778 resp.addHeader( in addPCIeFunctionCommonProperties()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp40 res.addHeader(boost::beast::http::field::content_type, in completeResponseFields()
51 res.addHeader(boost::beast::http::field::content_type, in completeResponseFields()
H A Dhttp_request.hpp54 void addHeader(std::string_view key, std::string_view value) in addHeader() function
59 void addHeader(boost::beast::http::field key, std::string_view value) in addHeader() function
H A Dhttp_response.hpp50 void addHeader(std::string_view key, std::string_view value) in addHeader() function
55 void addHeader(http::field key, std::string_view value) in addHeader() function
285 addHeader(http::field::etag, hexVal); in setHashAndHandleNotModified()
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_aggregator.hpp270 asyncResp.addHeader(boost::beast::http::field::content_type, in addAggregatedHeaders()
275 asyncResp.addHeader(boost::beast::http::field::allow, in addAggregatedHeaders()
283 asyncResp.addHeader(boost::beast::http::field::location, location); in addAggregatedHeaders()
287 asyncResp.addHeader(boost::beast::http::field::retry_after, in addAggregatedHeaders()
984 asyncResp->res.addHeader("Content-Type", "application/json"); in processCollectionResponse()
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Djson_utils_test.cpp324 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
351 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
381 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
400 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
415 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()

12