|
@@ -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 {
|
|
func WithBeforeCreateBuilderCallback(callbacks RequestBuilderCallback) CreateOption {
|
|
return func(options *CreateOptions) {
|
|
return func(options *CreateOptions) {
|
|
options.beforeBuilderCallback = callbacks
|
|
options.beforeBuilderCallback = callbacks
|