|
@@ -479,6 +479,12 @@ func WithGlobalMiddlewares(middlewares ...gateway.Handler) GlobalOption {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+func WithDisableCreate() CreateOption {
|
|
|
+ return func(options *CreateOptions) {
|
|
|
+ options.disable = true
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption {
|
|
|
return func(options *CreateOptions) {
|
|
|
options.beforeBuilderCallback = callbacks
|