Skip to content

Comments

feat: add PUT, HEAD, DELETE, and PATCH HTTP methods#6

Open
soyuka wants to merge 2 commits intodunglas:mainfrom
soyuka:feat/http-methods
Open

feat: add PUT, HEAD, DELETE, and PATCH HTTP methods#6
soyuka wants to merge 2 commits intodunglas:mainfrom
soyuka:feat/http-methods

Conversation

@soyuka
Copy link

@soyuka soyuka commented Feb 23, 2026

Summary

  • Adds put(), head(), delete(), and patch() methods to SolidClient
  • put() supports optional LDP BasicContainer Link header for container creation
  • patch() defaults to application/sparql-update, also supports text/n3 for N3 Patch
  • Applies CS Fixer auto-fixes (explicit nullable types, \sprintf)

Stack

1/8 — This PRmain

Test plan

  • Unit tests for all 4 new methods with MockHttpClient
  • Existing SmokeTest still passes
  • CS Fixer clean

🤖 Generated with Claude Code

@soyuka
Copy link
Author

soyuka commented Feb 23, 2026

Stack: 1/6 → main

soyuka and others added 2 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>
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