class ContentDirectoryProvider
Defined at line 250 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h
Defines a provider which hosts resources from a [`fuchsia.io/Directory`]. Content can `GET`
resource files via the provider, but not enumerate directories. Resources can be accessed by
their URLs: `fuchsia-dir://
<provider
-name>/
<path
/to/resource>`
By default the MIME types of files are determined automatically by "sniffing" the contents of
the files. No content encoding will be declared, which browsers will interpret as meaning
`"text/plain"`.
Content type and encoding metadata may optionally be specified explicitly by metadata files,
which reside alongside the file. Metadata is expressed in JSON files, named after the files
they describe with a `"._metadata"` suffix.
For example, the file `"index.html"` would have the a metadata file called
`"index.html._metadata"`, with the following contents:
```
{
"charset": "utf-8",
"mime": "text/html"
}
```
Public Methods
void ContentDirectoryProvider (Storage_ storage)
void ContentDirectoryProvider ()
Defined at line 255 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h
void ContentDirectoryProvider (ContentDirectoryProvider && )
Defined at line 256 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h
bool IsEmpty ()
const std::optional< ::std::string> & name ()
Name of the provider. Must be non-empty and composed solely of alphanumerics, dots, and
dashes.
::std::optional< ::std::string> & name ()
Name of the provider. Must be non-empty and composed solely of alphanumerics, dots, and
dashes.
ContentDirectoryProvider & name (std::optional< ::std::string> value)
Name of the provider. Must be non-empty and composed solely of alphanumerics, dots, and
dashes.
const std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & directory ()
Directory containing the files served by this provider.
::std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> & directory ()
Directory containing the files served by this provider.
ContentDirectoryProvider & directory (std::optional< ::fidl::ClientEnd< ::fuchsia_io::Directory>> value)
Directory containing the files served by this provider.
void ContentDirectoryProvider (::fidl::internal::DefaultConstructPossiblyInvalidObjectTag )
ContentDirectoryProvider & operator= (ContentDirectoryProvider && )
Defined at line 257 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/natural_types.h
Friends
class MemberVisitor
class NaturalTableCodingTraits