|
Malloy
|
#include <form_data.hpp>
Public Member Functions | |
| std::optional< form_field_data > | field_by_name (std::string_view field_name) const |
| bool | has_data (std::string_view field_name) const |
| bool | has_content (std::string_view field_name) const |
| std::optional< std::string > | content (std::string_view field_name) const |
| std::string | dump () const |
Public Attributes | |
| std::vector< form_field_data > | fields |
Type to represent the data held by an HTML form.
|
nodiscard |
The the parsed data content of a specific field.
| field_name | The name of the field. |

|
nodiscard |
Dumps the key-value pairs as a readable string.
|
nodiscard |
Get a field by name.
| field_name | The field name. |
|
nodiscard |
Checks whether a particular field has parsed content.
| field_name | The field name. |

|
nodiscard |
Checks whether a field has parsed data.
| field_name | The name of the field. |

| std::vector<form_field_data> malloy::html::form_data::fields |
The data for each field.