File tree Expand file tree Collapse file tree 2 files changed +10
-4
lines changed
postmaster/instantiations Expand file tree Collapse file tree 2 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -42,4 +42,9 @@ namespace application
4242 device.Add (" attributes" , postmaster.attributes );
4343 });
4444 }
45+
46+ infra::BoundedConstString HttpPageDiscovery::ContentType () const
47+ {
48+ return " application/json" ;
49+ }
4550}
Original file line number Diff line number Diff line change @@ -14,12 +14,13 @@ namespace application
1414 HttpPageDiscovery (infra::BoundedConstString path, application::PostmasterDiscovery& discovery);
1515
1616 // Implementation of SimpleHttpPage
17- virtual bool ServesRequest (const infra::Tokenizer& pathTokens) const override ;
18- virtual void RespondToRequest (services::HttpRequestParser& parser, services::HttpServerConnection& connection) override ;
17+ bool ServesRequest (const infra::Tokenizer& pathTokens) const override ;
18+ void RespondToRequest (services::HttpRequestParser& parser, services::HttpServerConnection& connection) override ;
1919
2020 // Implementation of HttpResponse
21- virtual infra::BoundedConstString Status () const override ;
22- virtual void WriteBody (infra::TextOutputStream& stream) const override ;
21+ infra::BoundedConstString Status () const override ;
22+ void WriteBody (infra::TextOutputStream& stream) const override ;
23+ infra::BoundedConstString ContentType () const override ;
2324
2425 private:
2526 infra::BoundedConstString path;
You can’t perform that action at this time.
0 commit comments