You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/advanced-guide/grpc/page.md
+66Lines changed: 66 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -194,6 +194,31 @@ func authInterceptor(ctx context.Context, req any, info *grpc.UnaryServerInfo, h
194
194
}
195
195
```
196
196
197
+
## Adding Custom Stream interceptors
198
+
199
+
For streaming RPCs (client-stream, server-stream, or bidirectional), GoFr allows you to add stream interceptors using AddGRPCServerStreamInterceptors. These are useful for handling logic that needs to span the entire lifetime of a stream.
For more details on adding additional interceptors and server options, refer to the [official gRPC Go package](https://pkg.go.dev/google.golang.org/grpc#ServerOption).
198
223
199
224
## Generating gRPC Client using `gofr wrap grpc client`
Copy file name to clipboardExpand all lines: docs/advanced-guide/overriding-default/page.md
+9Lines changed: 9 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -143,6 +143,15 @@ func main() {
143
143
}
144
144
```
145
145
146
+
In GoFr, the following HTTP methods can be redirected, along with their corresponding status codes:
147
+
148
+
-**GET (302 Found)**: It is safe to redirect because the request remains a GET after the redirect.
149
+
-**POST (303 See Other)**: The browser converts the POST request to a GET on redirect.
150
+
-**PUT (303 See Other)**: The browser converts the PUT request to a GET on redirect.
151
+
-**PATCH (303 See Other)**: The browser converts the PATCH request to a GET on redirect.
152
+
-**DELETE (302 Found)**: This is a temporary redirect, but method handling is ambiguous, as most browsers historically convert the DELETE request into a GET.
153
+
154
+
146
155
## Favicon.ico
147
156
148
157
By default, GoFr loads its own `favicon.ico` present in root directory for an application. To override `favicon.ico` user
0 commit comments