|
PACS System 0.1.0
PACS DICOM system library
|
Parser for multipart/related request bodies. More...
#include <dicomweb_endpoints.h>

Classes | |
| struct | parse_error |
| Parse error information. More... | |
| struct | parse_result |
| Parse result - either parts or error. More... | |
Static Public Member Functions | |
| static auto | parse (std::string_view content_type, std::string_view body) -> parse_result |
| Parse a multipart/related request body. | |
| static auto | extract_boundary (std::string_view content_type) -> std::optional< std::string > |
| Extract boundary from Content-Type header. | |
| static auto | extract_type (std::string_view content_type) -> std::optional< std::string > |
| Extract type parameter from Content-Type header. | |
Static Private Member Functions | |
| static auto | parse_part_headers (std::string_view header_section) -> std::vector< std::pair< std::string, std::string > > |
| Parse headers from a part's header section. | |
Parser for multipart/related request bodies.
Parses incoming multipart/related requests as used by STOW-RS for uploading DICOM instances.
Definition at line 232 of file dicomweb_endpoints.h.
|
staticnodiscard |
Extract boundary from Content-Type header.
| content_type | The Content-Type header value |
Definition at line 332 of file dicomweb_endpoints.cpp.
|
staticnodiscard |
Extract type parameter from Content-Type header.
| content_type | The Content-Type header value |
Definition at line 364 of file dicomweb_endpoints.cpp.
|
staticnodiscard |
Parse a multipart/related request body.
| content_type | The Content-Type header value (must include boundary) |
| body | The raw request body |
Definition at line 436 of file dicomweb_endpoints.cpp.
References kcenon::pacs::web::dicomweb::multipart_part::content_id, kcenon::pacs::web::dicomweb::multipart_part::content_location, kcenon::pacs::web::dicomweb::multipart_part::content_type, kcenon::pacs::web::dicomweb::multipart_part::data, kcenon::pacs::web::dicomweb::media_type::dicom, kcenon::pacs::web::dicomweb::multipart_parser::parse_result::error, name, and kcenon::pacs::web::dicomweb::multipart_parser::parse_result::parts.
|
staticnodiscardprivate |
Parse headers from a part's header section.
| header_section | The raw header section |
Definition at line 396 of file dicomweb_endpoints.cpp.
References name.