kenhuuu opened a new pull request, #3447:
URL: https://github.com/apache/tinkerpop/pull/3447
Standardize request interceptors and switch to JSON request serialization
Redesign the request interceptor API across all GLVs to use a consistent
mutate-only contract. Interceptors receive a mutable HTTP request object and
modify it in place. The driver auto-serializes the request body to JSON
(application/json) after all interceptors run via an idempotent serializeBody()
method on the request object. Responses remain GraphBinary.
The GraphBinary request serializers are retained in each GLV but are no
longer wired into the default request path. Users who need GraphBinary request
bodies can write a custom interceptor that calls the serializer.
JavaScript: Add serializeBody() to HttpRequest class. Add toJSON() to
RequestMessage for clean serialization without field-list duplication.
The bulkResults field is changed from a string to a boolean in gremlin-go
and gremlin-dotnet to match the provider specification which defines it as a
JSON boolean.
Assisted-by: Kiro:claude-opus-4-6
<!--
Thanks for contributing! Reminders:
+ TARGET the earliest branch where you want the change
3.7-dev -> 3.7.7 (non-breaking only)
3.8-dev -> 3.8.2 (non-breaking only)
master -> 4.0.0
+ Committers will MERGE the PR forward to newer versions
+ ADD entry to the CHANGELOG.asciidoc for the targeted version
Do not reference a JIRA number there
+ ADD JIRA number to title and link in description
+ PRs requires 3 +1s from committers OR
1 +1 and 7 day wait to merge.
+ MORE details: https://s.apache.org/rtnal
-->
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]