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