Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 758 for path (0.3 sec)

  1. docs/en/docs/tutorial/first-steps.md

    ### Step 3: create a *path operation*
    
    #### Path
    
    "Path" here refers to the last part of the URL starting from the first `/`.
    
    So, in a URL like:
    
    ```
    https://example.com/items/foo
    ```
    
    ...the path would be:
    
    ```
    /items/foo
    ```
    
    !!! info
        A "path" is also commonly called an "endpoint" or a "route".
    
    Plain Text
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Thu May 02 22:37:31 GMT 2024
    - 12K bytes
    - Viewed (0)
  2. cmd/xl-storage.go

    	return nil
    }
    
    func getValidPath(path string) (string, error) {
    	if path == "" {
    		return path, errInvalidArgument
    	}
    
    	var err error
    	// Disallow relative paths, figure out absolute paths.
    	path, err = filepath.Abs(path)
    	if err != nil {
    		return path, err
    	}
    
    	fi, err := Lstat(path)
    	if err != nil && !osIsNotExist(err) {
    		return path, err
    	}
    	if osIsNotExist(err) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 28 17:53:50 GMT 2024
    - 84.7K bytes
    - Viewed (0)
  3. cmd/generic-handlers.go

    	return err
    }
    
    // Check if the incoming path has bad path components,
    // such as ".." and "."
    func hasBadPathComponent(path string) bool {
    	if len(path) > 4096 {
    		// path cannot be greater than Linux PATH_MAX
    		// this is to avoid a busy loop, that can happen
    		// if the caller sends path of following style
    		// a/a/a/a/a/a/a/a...
    		return true
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 11 01:08:52 GMT 2024
    - 20.7K bytes
    - Viewed (0)
  4. cmd/endpoint.go

    		}
    
    		// As this is path in the URL, we should use path package, not filepath package.
    		// On MS Windows, filepath.Clean() converts into Windows path style ie `/foo` becomes `\foo`
    		u.Path = path.Clean(u.Path)
    		if isEmptyPath(u.Path) {
    			return ep, fmt.Errorf("empty or root path is not supported in URL endpoint")
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Sun Apr 21 11:43:18 GMT 2024
    - 34.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/ClassPathTest.java

        }
        String oldPathSeparator = PATH_SEPARATOR.value();
        String oldClassPath = JAVA_CLASS_PATH.value();
        System.setProperty(PATH_SEPARATOR.key(), ":");
        System.setProperty(
            JAVA_CLASS_PATH.key(),
            Joiner.on(":")
                .join(
                    "relative/path/to/some.jar",
                    "/absolute/path/to/some.jar",
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Apr 26 14:02:27 GMT 2024
    - 24.9K bytes
    - Viewed (0)
  6. maven-api-impl/src/main/java/org/apache/maven/internal/impl/resolver/scopes/Maven4ScopeManagerConfiguration.java

        @Override
        public BuildScopeSource getBuildScopeSource() {
            return new BuildScopeMatrixSource(
                    Arrays.asList(CommonBuilds.PROJECT_PATH_MAIN, CommonBuilds.PROJECT_PATH_TEST),
                    Arrays.asList(CommonBuilds.BUILD_PATH_COMPILE, CommonBuilds.BUILD_PATH_RUNTIME));
        }
    
        @Override
        public Collection<org.eclipse.aether.scope.DependencyScope> buildDependencyScopes(
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Fri Apr 12 10:50:18 GMT 2024
    - 9.1K bytes
    - Viewed (0)
  7. maven-compat/src/test/java/org/apache/maven/project/LegacyLocalRepositoryManager.java

            StringBuilder path = new StringBuilder(128);
    
            path.append(artifact.getGroupId()).append('/');
    
            path.append(artifact.getExtension()).append("s/");
    
            path.append(artifact.getArtifactId()).append('-').append(artifact.getVersion());
    
            if (!artifact.getClassifier().isEmpty()) {
                path.append('-').append(artifact.getClassifier());
            }
    
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu Apr 25 05:46:50 GMT 2024
    - 5.4K bytes
    - Viewed (0)
  8. maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java

        /**
         * Shortcut for <code>getService(RepositoryFactory.class).createLocal(...)</code>
         *
         * @see RepositoryFactory#createLocal(Path)
         */
        @Override
        public LocalRepository createLocalRepository(Path path) {
            return getService(RepositoryFactory.class).createLocal(path);
        }
    
        /**
         * Shortcut for <code>getService(RepositoryFactory.class).createRemote(...)</code>
         *
    Java
    - Registered: Sun May 05 03:35:11 GMT 2024
    - Last Modified: Thu May 02 16:33:18 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  9. tests/test_tutorial/test_request_files/test_tutorial001.py

        path.write_bytes(b"x" * (default_pydantic_max_size + 1))
    
        client = TestClient(app)
        with path.open("rb") as file:
            response = client.post("/files/", files={"file": file})
        assert response.status_code == 200, response.text
        assert response.json() == {"file_size": default_pydantic_max_size + 1}
    
    
    def test_post_upload_file(tmp_path):
        path = tmp_path / "test.txt"
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Apr 18 19:40:57 GMT 2024
    - 7.7K bytes
    - Viewed (2)
  10. fastapi/dependencies/utils.py

        assert callable(
            depends.dependency
        ), "A parameter-less dependency must have a callable dependency"
        return get_sub_dependant(depends=depends, dependency=depends.dependency, path=path)
    
    
    def get_sub_dependant(
        *,
        depends: params.Depends,
        dependency: Callable[..., Any],
        path: str,
        name: Optional[str] = None,
    Python
    - Registered: Sun May 05 07:19:11 GMT 2024
    - Last Modified: Tue Apr 02 02:52:56 GMT 2024
    - 29.5K bytes
    - Viewed (0)
Back to top