Action Engine
Loading...
Searching...
No Matches
mimetypes.h
Go to the documentation of this file.
1
// Copyright 2025 Google LLC
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
20
21
#ifndef ACTIONENGINE_DATA_MIMETYPES_H_
22
#define ACTIONENGINE_DATA_MIMETYPES_H_
23
24
#include <string_view>
25
26
namespace
act {
27
constexpr
auto
kEmptyMimetype =
""
;
28
constexpr
auto
kMimetypeBytes =
"application/octet-stream"
;
29
constexpr
auto
kMimetypeTextPlain =
"text/plain"
;
30
31
constexpr
bool
MimetypeIsTextual(
const
std::string_view mimetype) {
32
return
mimetype == kMimetypeTextPlain || mimetype == kMimetypeBytes;
33
}
34
}
// namespace act
35
36
#endif
// ACTIONENGINE_DATA_MIMETYPES_H_
src
actionengine
data
mimetypes.h
Generated by
1.13.2