|
@@ -383,6 +383,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
|