Skip to content

Answer a link with uri and method on the way back - #23

Merged
noha merged 2 commits into
mainfrom
a-link-carries-uri-and-method
Oct 29, 2026
Merged

noha merged 2 commits into
mainfrom
a-link-carries-uri-and-method

Conversation

@noha

@noha noha commented Oct 29, 2026

Copy link
Copy Markdown
Contributor

The uri space threw the http method away when it registered the segments of the operations, so a uri could be built back but not the method that reaches the operation there. It now keeps the method, the key the entry hangs at in the segment, next to the segment (methodForResource: andOperation:).

HOPUriBuilder>>buildLink answers both as a HOPLink; build keeps answering the uri alone. The method comes from the tree a request is routed by, not from the operation class, so HOP needs no convention on the application's operations.

noha and others added 2 commits October 29, 2026 13:08
The uri space threw the http method away when it registered the segments
of the operations, so a uri could be built back but not the method that
reaches the operation there. It now keeps the method, the key the entry
hangs at in the segment, next to the segment (methodForResource:
andOperation:).

HOPUriBuilder>>buildLink answers both as a HOPLink; build keeps
answering the uri alone. The method comes from the tree a request is
routed by, not from the operation class, so HOP needs no convention on
the application's operations.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
operationSegments and operationMethods shared the key and were always
written together. They are one dictionary now, operations, whose value
is the segment with the http method it is reached with there. The link
builder looks it up once (segmentAndMethodForResource:andOperation:)
instead of segment and method separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@noha
noha merged commit c5468f6 into main Oct 29, 2026
4 checks passed
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