Skip to content

Use HTTP QUERY instead of PUT for read RPC methods#87

Merged
sharoonthomas merged 1 commit into
fulfilio:developfrom
debdutgoswami:move-from-PUT-to-QUERY
Jul 13, 2026
Merged

Use HTTP QUERY instead of PUT for read RPC methods#87
sharoonthomas merged 1 commit into
fulfilio:developfrom
debdutgoswami:move-from-PUT-to-QUERY

Conversation

@debdutgoswami

Copy link
Copy Markdown
Member

Read-oriented RPC calls (search, read, search_read, search_count) need a request body to carry filters and fields, so they were sent as PUT — a method HTTP treats as unsafe and non-idempotent even though these calls never mutate data. With no safe, idempotent method that permits a body, read-with-body had to piggyback on PUT, mislabeling read traffic to proxies, caches, and retry logic.

[sc-105627]

@debdutgoswami debdutgoswami force-pushed the move-from-PUT-to-QUERY branch 2 times, most recently from e954801 to b099221 Compare July 13, 2026 10:00
@register_decoder("bytes")
def _bytes_decoder(v):
cast = bytearray if bytes == str else bytes
cast = bytearray if bytes is str else bytes

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Read-oriented RPC calls (search, read, search_read, search_count) need
a request body to carry filters and fields, so they were sent as PUT —
a method HTTP treats as unsafe and non-idempotent even though these
calls never mutate data. With no safe, idempotent method that permits
a body, read-with-body had to piggyback on PUT, mislabeling read
traffic to proxies, caches, and retry logic.

[sc-105627]
@debdutgoswami debdutgoswami force-pushed the move-from-PUT-to-QUERY branch from b099221 to 3d7b07a Compare July 13, 2026 10:01
@sharoonthomas sharoonthomas merged commit 35f1299 into fulfilio:develop Jul 13, 2026
2 checks passed
@debdutgoswami debdutgoswami deleted the move-from-PUT-to-QUERY branch July 13, 2026 10:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants