class ContentDirectoryProvider
Defined at line 459 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_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 ()
Defined at line 461 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
void ContentDirectoryProvider (const ContentDirectoryProvider & other)
Defined at line 462 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
ContentDirectoryProvider & operator= (const ContentDirectoryProvider & other)
Defined at line 463 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
void ContentDirectoryProvider (ContentDirectoryProvider && other)
Defined at line 464 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
bool IsEmpty ()
Returns whether no field is set.
bool HasUnknownData ()
Returns whether the table references unknown fields.
void _CloseHandles ()
::fidl::WireTableBuilder< ::fuchsia_web::wire::ContentDirectoryProvider> Builder (::fidl::AnyArena & arena)
Return a builder that by defaults allocates of an arena.
::fidl::WireTableExternalBuilder< ::fuchsia_web::wire::ContentDirectoryProvider> ExternalBuilder (::fidl::ObjectView< ::fidl::WireTableFrame< ::fuchsia_web::wire::ContentDirectoryProvider>> frame)
Return a builder that relies on explicitly allocating |fidl::ObjectView|s.
::fidl::StringView & name ()
Name of the provider. Must be non-empty and composed solely of alphanumerics, dots, and
dashes.
bool has_name ()
::fidl::ClientEnd< ::fuchsia_io::Directory> & directory ()
Directory containing the files served by this provider.
bool has_directory ()
ContentDirectoryProvider & operator= (ContentDirectoryProvider && other)
Defined at line 465 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
void ~ContentDirectoryProvider ()
Defined at line 467 of file fidling/gen/sdk/fidl/fuchsia.web/fuchsia.web/cpp/fidl/fuchsia.web/cpp/wire_types.h
Friends
class WireTableBaseBuilder
class WireTableBaseBuilder