跳至主要内容

MultipartHeaderCaptureOptions Struct

Selects which multipart part headers are captured as per-frame attributes. More...

Declaration​

struct simaai::neat::MultipartHeaderCaptureOptions { ... }

Included Headers​

#include <MultipartJpegDemux.h>

Public Member Functions Index​

boolenabled () const noexcept

True when capture is requested. More...

Public Member Attributes Index​

std::vector< std::string >headers

Header names to capture. Empty (the default) disables capture. More...

Description​

Selects which multipart part headers are captured as per-frame attributes.

The list is an allowlist. Leaving it empty disables capture entirely and keeps the stock demux topology and behavior unchanged.

Configured names and emitted keys are normalized to ASCII lowercase, so matching is case-insensitive; duplicates collapse after normalization. Within one part, a repeated selected header keeps its last value. A header that is absent from a part is omitted; a header present with an empty value is preserved as an empty string. Only surrounding SP/HTAB is trimmed — values are never otherwise reinterpreted.

Configuration is rejected rather than truncated when it exceeds kMultipartHeaderCaptureMaxHeaders names or kMultipartHeaderCaptureMaxNameBytes per name, or when a name is not a valid HTTP token.

See Also

SampleAttributes

Definition at line 45 of file MultipartJpegDemux.h.

Public Member Functions​

enabled()​

bool simaai::neat::MultipartHeaderCaptureOptions::enabled ()
inline noexcept

True when capture is requested.

Definition at line 50 of file MultipartJpegDemux.h.

Public Member Attributes​

headers​

std::vector<std::string> simaai::neat::MultipartHeaderCaptureOptions::headers

Header names to capture. Empty (the default) disables capture.

Definition at line 47 of file MultipartJpegDemux.h.


The documentation for this struct was generated from the following file:


Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.