http2_connection.hpp (d547d8d2c30a7d00852855da8ecc15c0cc424b0e) http2_connection.hpp (1873a04f43bb414408d1da9a5a775c05474603d2)
1#pragma once
2#include "bmcweb_config.h"
3
4#include "async_resp.hpp"
5#include "authentication.hpp"
6#include "complete_response_fields.hpp"
7#include "http_body.hpp"
8#include "http_response.hpp"

--- 420 unchanged lines hidden (view full) ---

429 boost::beast::http::verb verb =
430 boost::beast::http::string_to_verb(valueSv);
431 if (verb == boost::beast::http::verb::unknown)
432 {
433 BMCWEB_LOG_ERROR("Unknown http verb {}", valueSv);
434 close();
435 return -1;
436 }
1#pragma once
2#include "bmcweb_config.h"
3
4#include "async_resp.hpp"
5#include "authentication.hpp"
6#include "complete_response_fields.hpp"
7#include "http_body.hpp"
8#include "http_response.hpp"

--- 420 unchanged lines hidden (view full) ---

429 boost::beast::http::verb verb =
430 boost::beast::http::string_to_verb(valueSv);
431 if (verb == boost::beast::http::verb::unknown)
432 {
433 BMCWEB_LOG_ERROR("Unknown http verb {}", valueSv);
434 close();
435 return -1;
436 }
437 thisReq.req.method(verb);
437 thisReq.method(verb);
438 }
439 else if (nameSv == ":scheme")
440 {
441 // Nothing to check on scheme
442 }
443 else
444 {
438 }
439 else if (nameSv == ":scheme")
440 {
441 // Nothing to check on scheme
442 }
443 else
444 {
445 thisReq.req.set(nameSv, valueSv);
445 thisReq.addHeader(nameSv, valueSv);
446 }
447 return 0;
448 }
449
450 static int onHeaderCallbackStatic(nghttp2_session* /* session */,
451 const nghttp2_frame* frame,
452 const uint8_t* name, size_t namelen,
453 const uint8_t* value, size_t vallen,

--- 160 unchanged lines hidden ---
446 }
447 return 0;
448 }
449
450 static int onHeaderCallbackStatic(nghttp2_session* /* session */,
451 const nghttp2_frame* frame,
452 const uint8_t* name, size_t namelen,
453 const uint8_t* value, size_t vallen,

--- 160 unchanged lines hidden ---