Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parthea committed Dec 17, 2024
1 parent dc9cab1 commit 2e40a21
Showing 1 changed file with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,12 @@ class {{ async_method_name_prefix }}{{ service.name }}RestInterceptor:
{% endif %}
"""Post-rpc interceptor for {{ method.name|snake_case }}

Override in a subclass to manipulate the response
Deprecated. Override in a subclass to read or manipulate the response
after it is returned by the {{ service.name }} server but before
it is returned to user code. This `post_{{ method.name|snake_case }}` iterceptor runs
before the `post_{{ method.name|snake_case }}_with_metadata` iterceptor.
before the `post_{{ method.name|snake_case }}_with_metadata` iterceptor. This
interceptor is deprecated. Please use the `post_{{ method.name|snake_case }}_with_metadata`
interceptor instead.
"""
return response

Expand All @@ -397,12 +399,13 @@ class {{ async_method_name_prefix }}{{ service.name }}RestInterceptor:
{% endif %}
"""Post-rpc interceptor for {{ method.name|snake_case }}

Override in a subclass to either manipulate or read, either the response
or metadata after it is returned by the {{ service.name }} server but before
it is returned to user code. This `post_{{ method.name|snake_case }}_with_metadata`
interceptor runs after the `post_{{ method.name|snake_case }}` iterceptor. This
`post_{{ method.name|snake_case }}_with_metadata` interceptor is recommended for
new development instead of `post_{{ method.name|snake_case }}`.
Override in a subclass to read or manipulate the response or metadata after it
is returned by the {{ service.name }} server but before it is returned to user code.
This `post_{{ method.name|snake_case }}_with_metadata` interceptor runs after the
`post_{{ method.name|snake_case }}` iterceptor. If the response is modified in
`post_{{ method.name|snake_case }}`, the modified response will be used in
`post_{{ method.name|snake_case }}_with_metadata. This `post_{{ method.name|snake_case }}_with_metadata`
interceptor is recommended for new development instead of `post_{{ method.name|snake_case }}`.
"""
return response, metadata

Expand Down

0 comments on commit 2e40a21

Please sign in to comment.