feat/support_fiber #2
@ -165,4 +165,14 @@ TryParseTraits<HttpVersion>::TryParse(Slice version) {
|
|||||||
return iter->second;
|
return iter->second;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpMethod method) {
|
||||||
|
return os << ToSlice(method);
|
||||||
|
}
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpStatus status) {
|
||||||
|
return os << ToSlice(status);
|
||||||
|
}
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpVersion version) {
|
||||||
|
return os << ToSlice(version);
|
||||||
|
}
|
||||||
|
|
||||||
} // namespace tile
|
} // namespace tile
|
||||||
|
@ -91,6 +91,10 @@ template <> struct TryParseTraits<HttpVersion> {
|
|||||||
static std::optional<HttpVersion> TryParse(Slice s);
|
static std::optional<HttpVersion> TryParse(Slice s);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpMethod method);
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpStatus status);
|
||||||
|
std::ostream &operator<<(std::ostream &os, HttpVersion version);
|
||||||
|
|
||||||
} // namespace tile
|
} // namespace tile
|
||||||
|
|
||||||
#endif // _TILE_NET_HTTP_TYPES_H
|
#endif // _TILE_NET_HTTP_TYPES_H
|
||||||
|
Loading…
x
Reference in New Issue
Block a user