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.hpp15 res.addHeader(bf::strict_transport_security, "max-age=31536000; " in addSecurityHeaders()
18 res.addHeader(bf::pragma, "no-cache"); in addSecurityHeaders()
22 res.addHeader(bf::cache_control, "no-store, max-age=0"); in addSecurityHeaders()
24 res.addHeader("X-Content-Type-Options", "nosniff"); in addSecurityHeaders()
29 res.addHeader(bf::x_frame_options, "DENY"); in addSecurityHeaders()
30 res.addHeader("Referrer-Policy", "no-referrer"); in addSecurityHeaders()
31 res.addHeader( in addSecurityHeaders()
62 res.addHeader("X-Permitted-Cross-Domain-Policies", "none"); in addSecurityHeaders()
63 res.addHeader("Cross-Origin-Embedder-Policy", "require-corp"); in addSecurityHeaders()
64 res.addHeader("Cross-Origin-Opener-Policy", "same-origin"); in addSecurityHeaders()
[all …]
H A Dcookies.hpp16 res.addHeader(boost::beast::http::field::set_cookie, in setSessionCookies()
19 res.addHeader(boost::beast::http::field::set_cookie, in setSessionCookies()
26 res.addHeader(boost::beast::http::field::set_cookie, in clearSessionCookies()
30 res.addHeader("Clear-Site-Data", R"("cache","cookies","storage")"); in clearSessionCookies()
H A Dwebassets.hpp80 asyncResp->res.addHeader(boost::beast::http::field::content_type, in handleStaticAsset()
86 asyncResp->res.addHeader(boost::beast::http::field::content_encoding, in handleStaticAsset()
92 asyncResp->res.addHeader(boost::beast::http::field::etag, file.etag); in handleStaticAsset()
99 asyncResp->res.addHeader(boost::beast::http::field::cache_control, in handleStaticAsset()
H A Dforward_unauthorized.hpp36 res.addHeader(boost::beast::http::field::location, in sendUnauthorized()
63 res.addHeader(boost::beast::http::field::www_authenticate, "Basic"); in sendUnauthorized()
H A Dimage_upload.hpp46 asyncResp->res.addHeader("Retry-After", "30"); in uploadImageHandler()
/openbmc/bmcweb/test/include/
H A Dmultipart_test.cpp42 reqIn.addHeader("Content-Type", in TEST_F()
77 reqIn.addHeader("Content-Type", in TEST_F()
95 reqIn.addHeader("Content-Type", in TEST_F()
117 reqIn.addHeader("Content-Type", in TEST_F()
136 reqIn.addHeader("Content-Type", in TEST_F()
156 reqIn.addHeader("Content-Type", in TEST_F()
176 reqIn.addHeader("Content-Type", in TEST_F()
195 reqIn.addHeader("Content-Type", in TEST_F()
214 reqIn.addHeader("Content-Type", in TEST_F()
234 reqIn.addHeader("Content-Type", in TEST_F()
[all …]
/openbmc/bmcweb/redfish-core/lib/
H A Daggregation_service.hpp37 asyncResp->res.addHeader( in handleAggregationServiceHead()
50 asyncResp->res.addHeader( in handleAggregationServiceGet()
107 asyncResp->res.addHeader( in handleAggregationSourceCollectionGet()
129 asyncResp->res.addHeader( in handleAggregationSourceCollectionHead()
153 asyncResp->res.addHeader( in populateAggregationSource()
217 asyncResp->res.addHeader( in handleAggregationSourceHead()
H A Dredfish_sessions.hpp69 asyncResp->res.addHeader( in handleSessionHead()
83 asyncResp->res.addHeader( in handleSessionGet()
169 asyncResp->res.addHeader( in handleSessionCollectionHead()
182 asyncResp->res.addHeader( in handleSessionCollectionGet()
222 asyncResp->res.addHeader("X-Auth-Token", session->sessionToken); in processAfterSessionCreation()
225 asyncResp->res.addHeader( in processAfterSessionCreation()
309 asyncResp->res.addHeader( in handleSessionServiceHead()
322 asyncResp->res.addHeader( in handleSessionServiceGet()
H A Denvironment_metrics.hpp44 asyncResp->res.addHeader( in handleEnvironmentMetricsHead()
71 asyncResp->res.addHeader( in handleEnvironmentMetricsGet()
H A Dpower_subsystem.hpp38 asyncResp->res.addHeader( in doPowerSubsystemCollection()
71 asyncResp->res.addHeader( in handlePowerSubsystemCollectionHead()
H A Dthermal_subsystem.hpp39 asyncResp->res.addHeader( in doThermalSubsystemCollection()
79 asyncResp->res.addHeader( in handleThermalSubsystemCollectionHead()
H A Dservice_root.hpp36 asyncResp->res.addHeader( in handleServiceRootHead()
44 asyncResp->res.addHeader( in handleServiceRootGetImpl()
H A Dfabric_adapters.hpp178 asyncResp->res.addHeader( in doAdapterGet()
319 asyncResp->res.addHeader( in handleFabricAdapterCollectionGet()
359 asyncResp->res.addHeader( in handleFabricAdapterCollectionHead()
388 asyncResp->res.addHeader( in afterHandleFabricAdapterHead()
H A Dfan.hpp104 asyncResp->res.addHeader( in doFanCollection()
140 asyncResp->res.addHeader( in handleFanCollectionHead()
233 resp.addHeader(boost::beast::http::field::link, in addFanCommonProperties()
427 asyncResp->res.addHeader( in handleFanHead()
H A Dthermal_metrics.hpp140 asyncResp->res.addHeader( in doThermalMetrics()
173 asyncResp->res.addHeader( in handleThermalMetricsHead()
H A Dnetwork_protocol.hpp185 asyncResp->res.addHeader( in getNetworkData()
489 asyncResp->res.addHeader( in handleBmcNetworkProtocolHead()
580 asyncResp->res.addHeader( in handleManagersNetworkProtocolHead()
599 asyncResp->res.addHeader( in handleManagersNetworkProtocolGet()
H A Dpower_supply.hpp81 asyncResp->res.addHeader( in doPowerSupplyCollection()
117 asyncResp->res.addHeader( in handlePowerSupplyCollectionHead()
472 asyncResp->res.addHeader( in doPowerSupplyGet()
507 asyncResp->res.addHeader( in handlePowerSupplyHead()
H A Daccount_service.hpp1235 asyncResp->res.addHeader( in handleAccountServiceHead()
1264 asyncResp->res.addHeader( in handleAccountServiceClientCertificatesInstanceHead()
1298 asyncResp->res.addHeader( in handleAccountServiceClientCertificatesHead()
1371 asyncResp->res.addHeader( in handleAccountServiceGet()
1705 asyncResp->res.addHeader( in handleAccountCollectionHead()
1725 asyncResp->res.addHeader( in handleAccountCollectionGet()
1836 asyncResp->res.addHeader("Location", in processAfterCreateUser()
1988 asyncResp->res.addHeader( in handleAccountHead()
2002 asyncResp->res.addHeader( in handleAccountGet()
H A Dpcie.hpp138 asyncResp->res.addHeader(boost::beast::http::field::link, in handlePCIeDeviceCollectionGet()
550 asyncResp->res.addHeader( in addPCIeDeviceCommonProperties()
675 asyncResp->res.addHeader( in handlePCIeFunctionCollectionGet()
788 resp.addHeader( in addPCIeFunctionCommonProperties()
H A Dmetadata.hpp118 asyncResp->res.addHeader(boost::beast::http::field::content_type, in handleMetadataGet()
/openbmc/bmcweb/http/
H A Dcomplete_response_fields.hpp42 res.addHeader(boost::beast::http::field::content_type, in completeResponseFields()
53 res.addHeader(boost::beast::http::field::content_type, in completeResponseFields()
H A Dhttp_request.hpp61 void addHeader(std::string_view key, std::string_view value) in addHeader() function
66 void addHeader(boost::beast::http::field key, std::string_view value) in addHeader() function
H A Dhttp_response.hpp61 void addHeader(std::string_view key, std::string_view value) in addHeader() function
66 void addHeader(http::field key, std::string_view value) in addHeader() function
296 addHeader(http::field::etag, hexVal); in setHashAndHandleNotModified()
/openbmc/bmcweb/redfish-core/include/
H A Dredfish_aggregator.hpp304 asyncResp.addHeader(boost::beast::http::field::content_type, in addAggregatedHeaders()
309 asyncResp.addHeader(boost::beast::http::field::allow, in addAggregatedHeaders()
317 asyncResp.addHeader(boost::beast::http::field::location, location); in addAggregatedHeaders()
321 asyncResp.addHeader(boost::beast::http::field::retry_after, in addAggregatedHeaders()
1047 asyncResp->res.addHeader("Content-Type", "application/json"); in processCollectionResponse()
/openbmc/bmcweb/test/redfish-core/include/utils/
H A Djson_utils_test.cpp326 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
353 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
383 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
418 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()
433 req.addHeader(boost::beast::http::field::content_type, "application/json"); in TEST()

12