Search Options

Results per page
Sort
Preferred Languages
Advance

Results 441 - 450 of 3,322 for fileA (0.04 sec)

  1. docs_src/request_files/tutorial002.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: List[bytes] = File()):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: List[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 811 bytes
    - Viewed (0)
  2. docs_src/request_files/tutorial002_an_py39.py

    from fastapi import FastAPI, File, UploadFile
    from fastapi.responses import HTMLResponse
    
    app = FastAPI()
    
    
    @app.post("/files/")
    async def create_files(files: Annotated[list[bytes], File()]):
        return {"file_sizes": [len(file) for file in files]}
    
    
    @app.post("/uploadfiles/")
    async def create_upload_files(files: list[UploadFile]):
        return {"filenames": [file.filename for file in files]}
    
    
    @app.get("/")
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 826 bytes
    - Viewed (0)
  3. docs/en/docs/reference/uploadfile.md

    # `UploadFile` class
    
    You can define *path operation function* parameters to be of the type `UploadFile` to receive files from the request.
    
    You can import it directly from `fastapi`:
    
    ```python
    from fastapi import UploadFile
    ```
    
    ::: fastapi.UploadFile
        options:
            members:
                - file
                - filename
                - size
                - headers
                - content_type
                - read
    Registered: Sun Nov 03 07:19:11 UTC 2024
    - Last Modified: Thu Apr 18 19:53:19 UTC 2024
    - 472 bytes
    - Viewed (0)
  4. samples/guide/src/main/java/okhttp3/recipes/ParseResponseWithMoshi.java

          Gist gist = gistJsonAdapter.fromJson(response.body().source());
    
          for (Map.Entry<String, GistFile> entry : gist.files.entrySet()) {
            System.out.println(entry.getKey());
            System.out.println(entry.getValue().content);
          }
        }
      }
    
      static class Gist {
        Map<String, GistFile> files;
      }
    
      static class GistFile {
        String content;
      }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.8K bytes
    - Viewed (0)
  5. helm/minio/.helmignore

    # negation (prefixed with !). Only one pattern per line.
    .DS_Store
    # Common VCS dirs
    .git/
    .gitignore
    .bzr/
    .bzrignore
    .hg/
    .hgignore
    .svn/
    # Common backup files
    *.swp
    *.bak
    *.tmp
    *~
    # Various IDEs
    .project
    .idea/
    *.tmproj
    # OWNERS file for Kubernetes
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Fri Aug 20 22:30:54 UTC 2021
    - 368 bytes
    - Viewed (0)
  6. LICENSES/third_party/forked/shell2junit/LICENSE

    d. If the Work includes a "NOTICE" text file as part of its distribution, 
    then any Derivative Works that You distribute must include a readable copy 
    of the attribution notices contained within such NOTICE file, excluding 
    those notices that do not pertain to any part of the Derivative Works, in at 
    least one of the following places: within a NOTICE text file distributed as 
    Registered: Fri Nov 01 09:05:11 UTC 2024
    - Last Modified: Thu Jul 08 11:48:19 UTC 2021
    - 9.2K bytes
    - Viewed (0)
  7. build-logic/documentation/src/test/groovy/gradlebuild/docs/FindBrokenInternalLinksTest.groovy

        }
    
        private static final class DeadLink {
            private final File file
            private final String message
    
            DeadLink(File file, String message) {
                this.file = file
                this.message = message
            }
    
            static DeadLink forSection(File file, String section) {
                return new DeadLink(file, "Looking for section named $section in ${file.name}")
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Wed Aug 21 08:08:05 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  8. misc/ios/go_ios_exec.go

    	}
    
    	// This wrapper uses complicated machinery to run iOS binaries. It
    	// works, but only when running one binary at a time.
    	// Use a file lock to make sure only one wrapper is running at a time.
    	//
    	// The lock file is never deleted, to avoid concurrent locks on distinct
    	// files with the same path.
    	lockName := filepath.Join(os.TempDir(), "go_ios_exec-"+deviceID+".lock")
    	lock, err = os.OpenFile(lockName, os.O_CREATE|os.O_RDONLY, 0666)
    Registered: Tue Nov 05 11:13:11 UTC 2024
    - Last Modified: Tue Jun 18 16:32:49 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/io/SourceSinkFactories.java

        private final ThreadLocal<File> fileThreadLocal = new ThreadLocal<>();
    
        protected File createFile() throws IOException {
          File file = File.createTempFile("SinkSourceFile", "txt");
          fileThreadLocal.set(file);
          return file;
        }
    
        protected File getFile() {
          return fileThreadLocal.get();
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:26:48 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/fess/app/web/admin/badword/AdminBadwordAction.java

    import java.io.BufferedWriter;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.OutputStreamWriter;
    import java.io.Reader;
    import java.io.Writer;
    import java.nio.file.Files;
    import java.nio.file.Path;
    
    import org.apache.logging.log4j.LogManager;
    import org.apache.logging.log4j.Logger;
    import org.codelibs.core.beans.util.BeanUtil;
    import org.codelibs.core.concurrent.CommonPoolUtil;
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:53:18 UTC 2024
    - 16.2K bytes
    - Viewed (0)
Back to top