Skip to content

Comments

feat: add ResourceMetadata value object from HEAD#7

Open
soyuka wants to merge 3 commits intodunglas:mainfrom
soyuka:feat/resource-metadata
Open

feat: add ResourceMetadata value object from HEAD#7
soyuka wants to merge 3 commits intodunglas:mainfrom
soyuka:feat/resource-metadata

Conversation

@soyuka
Copy link

@soyuka soyuka commented Feb 23, 2026

Summary

  • Adds ResourceMetadata value object parsed from HEAD response headers
  • Provides typed access to: contentType, contentLength, lastModified, ldpType, wacAllow, aclUrl
  • Adds getResourceMetadata() convenience method to SolidClient
  • isContainer() helper checks LDP type

Stack

2/8 — builds on #6 (feat/http-methods)

Test plan

  • Tests for header parsing (container, resource, empty headers)
  • All existing tests pass

🤖 Generated with Claude Code

@soyuka
Copy link
Author

soyuka commented Feb 23, 2026

Stack: 2/6 — builds on #6

soyuka and others added 3 commits February 23, 2026 21:43
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Adds the missing HTTP method wrappers to SolidClient:
- put(): creates/overwrites resources, with optional container Link header
- head(): retrieves resource metadata headers
- delete(): removes resources
- patch(): updates resources via SPARQL Update or N3 Patch

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Parses HEAD response headers into a structured ResourceMetadata object
with content type, length, last modified, LDP type, WAC-Allow permissions,
and ACL URL from Link headers.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@soyuka soyuka force-pushed the feat/resource-metadata branch from e7898c8 to 625edd5 Compare February 23, 2026 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant