Get header value (like JavaScript response.headers.get())
| 96 | |
| 97 | /// Get header value (like JavaScript response.headers.get()) |
| 98 | fl::optional<fl::string> get_header(const fl::string& name) const { |
| 99 | auto it = mHeaders.find(name); |
| 100 | if (it != mHeaders.end()) { |
| 101 | return fl::make_optional(it->second); |
| 102 | } |
| 103 | return fl::nullopt; |
| 104 | } |
| 105 | |
| 106 | /// Get content type convenience method |
| 107 | fl::optional<fl::string> get_content_type() const { |
nothing calls this directly
no test coverage detected