voicevox_client_cpp  0.0.0
A client library for VOICEVOX implemented in C++.
Public Types | Public Member Functions | Protected Attributes | List of all members
voicevox_client_cpp::request::Builder Class Reference

A base class for a group of builder classes. More...

#include <request.hpp>

Inheritance diagram for voicevox_client_cpp::request::Builder:
Inheritance graph
[legend]

Public Types

using SharedPtr = std::shared_ptr< Builder >
 An alias of a pointer of this class. More...
 

Public Member Functions

 Builder (const std::string &path) noexcept(false)
 Initialize URI. More...
 
web::http::http_request get () noexcept
 Create and provide a request based on the settings provided so far. More...
 
Buildermethod (const web::http::method &method)
 Set HTTP method to request. More...
 
Builderheader (const utility::string_t &key, const utility::string_t &value)
 Set a header consists of a key and a value. More...
 
Builderbody (const utility::string_t &body)
 Set the body of the request. (String type) More...
 
Builderbody (const web::json::value &body)
 Set the body of the request. (JSON type) More...
 

Protected Attributes

web::http::uri_builder uri_builder_
 URI builder. More...
 
web::http::http_request req_
 The request object to be built. More...
 

Detailed Description

A base class for a group of builder classes.


The documentation for this class was generated from the following file: