feat support http_types ToString()
Some checks failed
android / build (push) Failing after 37s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 1m17s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 1m54s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 1m59s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 1m35s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 1m42s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m25s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m27s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 4m38s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 1m16s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 4m43s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 52s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 1m42s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 47s
linux-x86-gcc / linux-gcc (Debug) (push) Has been cancelled
linux-x86-gcc / linux-gcc (Release) (push) Has been cancelled
Some checks failed
android / build (push) Failing after 37s
linux-arm-gcc / linux-gcc-arm (Debug) (push) Failing after 1m17s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Debug) (push) Failing after 1m54s
linux-aarch64-cpu-gcc / linux-gcc-aarch64 (Release) (push) Failing after 1m59s
linux-arm-gcc / linux-gcc-arm (Release) (push) Failing after 1m35s
linux-mips-gcc / linux-gcc-mipsel (Debug) (push) Failing after 1m42s
linux-mips-gcc / linux-gcc-mipsel (Release) (push) Failing after 1m45s
linux-mips64-gcc / linux-gcc-mips64el (Debug) (push) Failing after 1m25s
linux-mips64-gcc / linux-gcc-mips64el (Release) (push) Failing after 1m27s
linux-arm-gcc / linux-gcc-armhf (Debug) (push) Failing after 4m38s
linux-riscv64-gcc / linux-gcc-riscv64 (Debug) (push) Failing after 1m16s
linux-arm-gcc / linux-gcc-armhf (Release) (push) Failing after 4m43s
linux-x64-gcc / linux-gcc (Debug) (push) Failing after 52s
linux-riscv64-gcc / linux-gcc-riscv64 (Release) (push) Failing after 1m42s
linux-x64-gcc / linux-gcc (Release) (push) Failing after 47s
linux-x86-gcc / linux-gcc (Debug) (push) Has been cancelled
linux-x86-gcc / linux-gcc (Release) (push) Has been cancelled
This commit is contained in:
parent
a3531031c3
commit
b8b172b3b3
@ -165,4 +165,14 @@ TryParseTraits<HttpVersion>::TryParse(Slice version) {
|
||||
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
|
||||
|
@ -91,6 +91,10 @@ template <> struct TryParseTraits<HttpVersion> {
|
||||
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
|
||||
|
||||
#endif // _TILE_NET_HTTP_TYPES_H
|
||||
|
Loading…
Reference in New Issue
Block a user