Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 33 for root_path (0.18 sec)

  1. fastapi/applications.py

                async def openapi(req: Request) -> JSONResponse:
                    root_path = req.scope.get("root_path", "").rstrip("/")
                    if root_path not in server_urls:
                        if root_path and self.root_path_in_servers:
                            self.servers.insert(0, {"url": root_path})
                            server_urls.add(root_path)
                    return JSONResponse(self.openapi())
    
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Aug 17 04:52:31 UTC 2024
    - 172.2K bytes
    - Viewed (0)
  2. docs/en/docs/release-notes.md

    ## 0.56.0
    
    * Add support for ASGI `root_path`:
        * Use `root_path` internally for mounted applications, so that OpenAPI and the docs UI works automatically without extra configurations and parameters.
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri Nov 01 11:25:57 UTC 2024
    - 460.3K bytes
    - Viewed (0)
  3. build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/SubprojectsInfo.kt

    import kotlin.io.path.invariantSeparatorsPathString
    
    
    @DisableCachingByDefault(because = "Abstract super-class, not to be instantiated directly")
    abstract class SubprojectsInfo : DefaultTask() {
    
        private
        val rootPath = project.layout.projectDirectory.asFile.toPath()
    
        private
        val platformsFolder = project.layout.projectDirectory.dir("platforms")
    
        private
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.9K bytes
    - Viewed (0)
  4. cmd/format-erasure_test.go

    	if err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.MkdirAll(pathJoin(rootPath, minioMetaBucket), os.FileMode(0o755)); err != nil {
    		t.Fatal(err)
    	}
    
    	if err = os.WriteFile(pathJoin(rootPath, minioMetaBucket, formatConfigFile), b, os.FileMode(0o644)); err != nil {
    		t.Fatal(err)
    	}
    
    	formatData, _, err := formatErasureMigrate(rootPath)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Apr 15 08:25:46 UTC 2024
    - 12.9K bytes
    - Viewed (0)
  5. internal/grid/manager.go

    	// Bumping this should only be done when overall,
    	// incompatible changes are made, not when adding a new handler
    	// or changing an existing handler.
    	apiVersion = "v1"
    
    	// RoutePath is the remote path to connect to.
    	RoutePath = "/minio/grid/" + apiVersion
    
    	// RouteLockPath is the remote lock path to connect to.
    	RouteLockPath = "/minio/grid/lock/" + apiVersion
    )
    
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  6. internal/grid/grid.go

    func ConnectWSWithRoutePath(dial ContextDialer, auth AuthFn, tls *tls.Config, routePath string) func(ctx context.Context, remote string) (net.Conn, error) {
    	return func(ctx context.Context, remote string) (net.Conn, error) {
    		toDial := strings.Replace(remote, "http://", "ws://", 1)
    		toDial = strings.Replace(toDial, "https://", "wss://", 1)
    		toDial += routePath
    
    		dialer := ws.DefaultDialer
    		dialer.ReadBufferSize = readBufferSize
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. cmd/grid.go

    		BlockConnect: globalGridStart,
    		// Record incoming and outgoing bytes.
    		Incoming:  globalConnStats.incInternodeInputBytes,
    		Outgoing:  globalConnStats.incInternodeOutputBytes,
    		TraceTo:   globalTrace,
    		RoutePath: grid.RoutePath,
    	})
    	if err != nil {
    		return err
    	}
    	globalGrid.Store(g)
    	return nil
    }
    
    func initGlobalLockGrid(ctx context.Context, eps EndpointServerPools) error {
    	hosts, local := eps.GridHosts()
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  8. internal/grid/debug.go

    				nil),
    			Local:        host,
    			Hosts:        hosts,
    			AuthFn:       dummyNewToken,
    			AuthToken:    dummyTokenValidate,
    			BlockConnect: ready,
    			RoutePath:    RoutePath,
    		})
    		if err != nil {
    			return nil, err
    		}
    		m := mux.NewRouter()
    		m.Handle(RoutePath, manager.Handler(dummyRequestValidate))
    		res.Managers = append(res.Managers, manager)
    		res.Servers = append(res.Servers, startHTTPServer(listeners[i], m))
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  9. cmd/routers.go

    	// Add lock grid to router
    	router.Handle(grid.RouteLockPath, adminMiddleware(lockGrid.Handler(storageServerRequestValidate), noGZFlag, noObjLayerFlag))
    
    	// Add grid to router
    	router.Handle(grid.RoutePath, adminMiddleware(commonGrid.Handler(storageServerRequestValidate), noGZFlag, noObjLayerFlag))
    }
    
    // List of some generic middlewares which are applied for all incoming requests.
    var globalMiddlewares = []mux.MiddlewareFunc{
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  10. cmd/generic-handlers_test.go

    		URL:    u,
    	}
    	if !guessIsRPCReq(r) {
    		t.Fatal("Test shouldn't fail for a possible net/rpc request.")
    	}
    	r = &http.Request{
    		Proto:  "HTTP/1.1",
    		Method: http.MethodGet,
    		URL:    &url.URL{Path: grid.RoutePath},
    	}
    	if !guessIsRPCReq(r) {
    		t.Fatal("Grid RPC path not detected")
    	}
    	r = &http.Request{
    		Proto:  "HTTP/1.1",
    		Method: http.MethodGet,
    		URL:    &url.URL{Path: grid.RouteLockPath},
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Mon Jul 29 18:10:04 UTC 2024
    - 5.5K bytes
    - Viewed (0)
Back to top