Skip to main content

Module resource

Module resource 

Source
Expand description

Resource mutation path rules and response composition.

Structs§

DavCopyMovePlan
Resource-shape decisions needed by the Drive mutation adapter.
DavMutationFailure
One resource-level failure from a recursive COPY, MOVE, or DELETE operation.
DavMutationResponseError
Failure while composing a mutation success response header.

Enums§

DavCopyMoveMethod
COPY or MOVE operation selected by the request method.
DavMutationPlanError
Protocol failure selected after source/destination metadata is known.

Functions§

collection_created_response
Builds the successful MKCOL response.
delete_success_response
Builds the successful DELETE response.
enforce_parent_collection
Requires the canonical parent of a mutation target to exist as a collection.
is_descendant_path
Returns whether child is strictly below parent on a DAV path-segment boundary.
mutation_multistatus_response
Builds a 207 response for typed recursive mutation failures.
mutation_plan_error_response
Builds an empty response for resource-shape validation failure.
mutation_success_response
Builds the cache-safe 201/204 response selected by destination existence.
plan_copy_move_request
Plans COPY/MOVE resource-shape behavior after product metadata resolution.
replace_relative_prefix
Re-roots a canonical descendant path from one mutation tree to another.
resource_identity_path
Normalizes a DAV resource identity by removing collection trailing slashes.
same_resource_path
Compares DAV resource identity while ignoring collection trailing slashes.
validate_collection_create_target
Rejects collection creation for the DAV root resource.
validate_delete_target
Enforces collection DELETE Depth after product metadata resolution.