MakerLabs ACM
requests.cpp File Reference
#include "requests.h"
#include "actor_model.h"
#include "uuid.h"
#include "embedded_files_string_view_wrapper.h"
#include "flatbuffers/reflection.h"
#include <utility>

Classes

struct  Requests::RequestIntentReflectionState
 

Namespaces

 Requests
 

Typedefs

using Requests::RequestIntentFields = flatbuffers::Vector< flatbuffers::Offset< reflection::Field > >
 

Functions

 Requests::DECLARE_STRING_VIEW_WRAPPER (requests_bfbs)
 
auto Requests::_set_request_field_by_name (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view field_name, const string_view str) -> bool
 
auto Requests::_parse_requests_schema () -> bool
 
auto Requests::make_request_payload (const std::vector< uint8_t > &payload) -> RequestIntentFlatbuffer
 
auto Requests::make_request_payload (const flatbuffers::DetachedBuffer &payload) -> RequestIntentFlatbuffer
 
auto Requests::make_request_payload (const std::experimental::string_view payload) -> RequestIntentFlatbuffer
 
auto Requests::make_response_payload (const UUID &request_id, const std::vector< uint8_t > &payload) -> RequestIntentFlatbuffer
 
auto Requests::make_response_payload (const UUID &request_id, const flatbuffers::DetachedBuffer &payload) -> RequestIntentFlatbuffer
 
auto Requests::make_response_payload (const UUID &request_id, const std::experimental::string_view payload) -> RequestIntentFlatbuffer
 
auto Requests::make_request_intent (const string_view method, const string_view uri, const std::vector< std::pair< string_view, string_view >> &query, const std::vector< std::pair< string_view, string_view >> &headers, const string_view body, const UUID &to_pid, const ResponseFilter desired_format, const string_view object_path, const string_view root_type, const string_view schema_text, const bool include_headers, const bool streaming) -> RequestIntentFlatbuffer
 
auto Requests::set_request_header (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view k, const string_view v) -> bool
 
auto Requests::set_request_query_arg (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view k, const string_view v) -> bool
 
auto Requests::set_request_method (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view method) -> bool
 
auto Requests::set_request_uri (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view uri) -> bool
 
auto Requests::set_request_body (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const string_view body) -> bool
 
auto Requests::matches (const ActorModel::Message &message, const std::experimental::string_view type, const Response *&response, const UUID &request_intent_id) -> bool
 
auto Requests::update_request_intent_ids (MutableRequestIntentFlatbuffer &request_intent_mutable_buf, const ActorModel::Pid &to_pid) -> bool
 
auto Requests::parse_request_intent (const std::experimental::string_view req_fb, const ActorModel::Pid &to_pid) -> MutableRequestIntentFlatbuffer
 
auto Requests::get_request_intent_id (const MutableRequestIntentFlatbuffer &request_intent_mutable_buf) -> const UUID
 
auto Requests::get_request_intent_id (const RequestIntentFlatbuffer &request_intent_buf) -> const UUID
 

Variables

static RequestIntentReflectionState Requests::state