introduce string_view

This commit is contained in:
Chunting Gu
2021-06-17 18:58:53 +08:00
parent 751a3539ae
commit 26bb6b341a
38 changed files with 404 additions and 344 deletions
+4 -3
View File
@@ -42,21 +42,22 @@ private:
std::size_t count, bool* end = nullptr) const;
private:
Request* request_;
// The result request message.
Request* request_ = nullptr;
// A function for matching view once the headers of a request has been
// received. The parsing will stop and fail if no view can be matched.
ViewMatcher view_matcher_;
// Form data parsing steps.
enum Step {
enum class Step {
kStart,
kBoundaryParsed,
kHeadersParsed,
kEnded,
};
Step step_ = kStart;
Step step_ = Step::kStart;
// The current form part being parsed.
FormPartPtr part_;