Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 72 for Callbacks (0.2 sec)

  1. docs/en/docs/advanced/openapi-callbacks.md

    Now use the parameter `callbacks` in *your API's path operation decorator* to pass the attribute `.routes` (that's actually just a `list` of routes/*path operations*) from that callback router:
    
    ```Python hl_lines="35"
    {!../../../docs_src/openapi_callbacks/tutorial001.py!}
    ```
    
    !!! tip
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:53:19 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  2. fastapi/openapi/utils.py

                    )
                    if request_body_oai:
                        operation["requestBody"] = request_body_oai
                if route.callbacks:
                    callbacks = {}
                    for callback in route.callbacks:
                        if isinstance(callback, routing.APIRoute):
                            (
                                cb_path,
                                cb_security_schemes,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 21.8K bytes
    - Viewed (0)
  3. fastapi/routing.py

                        current_dependencies.extend(route.dependencies)
                    current_callbacks = []
                    if callbacks:
                        current_callbacks.extend(callbacks)
                    if route.callbacks:
                        current_callbacks.extend(route.callbacks)
                    current_generate_unique_id = get_value_or_default(
                        route.generate_unique_id_function,
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 170.1K bytes
    - Viewed (0)
  4. fastapi/applications.py

                    [FastAPI docs for OpenAPI Callbacks](https://fastapi.tiangolo.com/advanced/openapi-callbacks/).
                    """
                ),
            ] = None,
            webhooks: Annotated[
                Optional[routing.APIRouter],
                Doc(
                    """
                    Add OpenAPI webhooks. This is similar to `callbacks` but it doesn't
                    depend on specific *path operations*.
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue Apr 02 02:48:51 GMT 2024
    - 172.2K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/Request.kt

         *
         * Use this API to attach timing, debugging, or other application data to a request so that
         * you may read it in interceptors, event listeners, or callbacks.
         */
        @JvmName("reifiedTag")
        inline fun <reified T : Any> tag(tag: T?): Builder = tag(T::class, tag)
    
        /**
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Sat Apr 06 04:17:44 GMT 2024
    - 10.5K bytes
    - Viewed (0)
  6. fastapi/openapi/models.py

        requestBody: Optional[Union[RequestBody, Reference]] = None
        # Using Any for Specification Extensions
        responses: Optional[Dict[str, Union[Response, Any]]] = None
        callbacks: Optional[Dict[str, Union[Dict[str, "PathItem"], Reference]]] = None
        deprecated: Optional[bool] = None
        security: Optional[List[Dict[str, List[str]]]] = None
        servers: Optional[List[Server]] = None
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 22:49:33 GMT 2024
    - 15K bytes
    - Viewed (0)
  7. callbacks/create.go

    package callbacks
    
    import (
    	"fmt"
    	"reflect"
    	"strings"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    // BeforeCreate before create hooks
    func BeforeCreate(db *gorm.DB) {
    	if db.Error == nil && db.Statement.Schema != nil && !db.Statement.SkipHooks && (db.Statement.Schema.BeforeSave || db.Statement.Schema.BeforeCreate) {
    		callMethod(db, func(value interface{}, tx *gorm.DB) (called bool) {
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Apr 08 03:29:55 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  8. callbacks/preload.go

    package callbacks
    
    import (
    	"fmt"
    	"reflect"
    	"sort"
    	"strings"
    
    	"gorm.io/gorm"
    	"gorm.io/gorm/clause"
    	"gorm.io/gorm/schema"
    	"gorm.io/gorm/utils"
    )
    
    // parsePreloadMap extracts nested preloads. e.g.
    //
    //	// schema has a "k0" relation and a "k7.k8" embedded relation
    //	parsePreloadMap(schema, map[string][]interface{}{
    //		clause.Associations: {"arg1"},
    //		"k1":                {"arg2"},
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Apr 25 12:21:03 GMT 2024
    - 11.6K bytes
    - Viewed (0)
  9. tensorflow/c/eager/tape.h

      // Accumulate will forward op executions to the tape while the backward
      // function is running; this effectively adds the backward tape to the active
      // set (but does not require complicated callbacks to the language bindings).
      Status ForwardpropFromTape(
          const string& op_type, const std::vector<TapeTensor>& output_tensors,
          const std::function<BackwardFunction*()>& backward_function_getter,
    C
    - Registered: Tue Apr 30 12:39:09 GMT 2024
    - Last Modified: Tue Apr 02 12:40:29 GMT 2024
    - 47.2K bytes
    - Viewed (1)
  10. cmd/metacache-set.go

    	defer cancel()
    
    	// Keep track of fallback disks
    	var fdMu sync.Mutex
    	fds := opts.fallbackDisks
    	fallback := func(err error) StorageAPI {
    		if _, ok := err.(StorageErr); ok {
    			// Attempt to grab a fallback disk
    			fdMu.Lock()
    			defer fdMu.Unlock()
    			if len(fds) == 0 {
    				return nil
    			}
    			fdsCopy := fds
    			for _, fd := range fdsCopy {
    				// Grab a fallback disk
    				fds = fds[1:]
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Fri Apr 26 19:52:52 GMT 2024
    - 30.4K bytes
    - Viewed (0)
Back to top