- Sort Score
- Num 10 results
- Language All
Results 311 - 320 of 9,606 for fixe (0.02 seconds)
-
docs_src/request_files/tutorial001_03_an_py310.py
from fastapi import FastAPI, File, UploadFile app = FastAPI() @app.post("/files/") async def create_file(file: Annotated[bytes, File(description="A file read as bytes")]): return {"file_size": len(file)} @app.post("/uploadfile/") async def create_upload_file( file: Annotated[UploadFile, File(description="A file read as UploadFile")], ):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 421 bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalDistributionArchiveCheckPlugin.java
} private static void assertNoClassFile(File file) { if (file.getName().endsWith(".class")) { throw new GradleException("Detected class file in distribution ('" + file.getName() + "')"); } } private static boolean zipExists() { return new File("/bin/unzip").exists() || new File("/usr/bin/unzip").exists() || new File("/usr/local/bin/unzip").exists(); }Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 10.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/ds/AbstractDataStoreTest.java
/* * Copyright 2012-2025 CodeLibs Project and the Others. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS,
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 12.8K bytes - Click Count (1) -
src/test/java/jcifs/smb/DirFileEntryEnumIterator1Test.java
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 12.7K bytes - Click Count (0) -
build-logic/documentation/src/main/groovy/gradlebuild/docs/GradleJavadocsPlugin.java
private final Set<File> canonicalPackageInfos = new HashSet<>(); @Override public boolean isSatisfiedBy(File file) { try { if (file.getName().equals("package-info.java")) { if (canonicalPackageInfos.contains(file.getAbsoluteFile())) {
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sun Mar 01 05:52:34 GMT 2026 - 11.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/DosFileFilterTest.java
SmbFile file = mock(SmbFile.class); when(file.getAttributes()).thenReturn(SmbFile.ATTR_NORMAL); assertTrue(filter.accept(file), "Attributes match should be accepted"); verify(file, times(1)).getAttributes(); } @Test public void testAcceptReturnsFalseWhenAttributesDoNotMatch() throws Exception { SmbFile file = mock(SmbFile.class);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 1.8K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/project/InvalidProjectModelException.java
/* * Licensed to the Apache Software Foundation (ASF) under one * or more contributor license agreements. See the NOTICE file * distributed with this work for additional information * regarding copyright ownership. The ASF licenses this file * to you under the Apache License, Version 2.0 (the * "License"); you may not use this file except in compliance * with the License. You may obtain a copy of the License at *
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 2.4K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/BasedirBeanConfigurationPathTranslator.java
public BasedirBeanConfigurationPathTranslator(File basedir) { this.basedir = basedir; } @Override public File translatePath(File path) { File result = path; if (path != null && basedir != null) { if (path.isAbsolute()) { // path is already absolute, we're done } else if (path.getPath().startsWith(File.separator)) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 2.1K bytes - Click Count (0) -
src/main/java/org/codelibs/core/nio/ChannelUtil.java
protected ChannelUtil() { } /** * Returns a {@link ByteBuffer} that maps the file channel to memory. * * @param channel * The file channel. Must not be {@literal null}. * @param mode * The mode. Must not be {@literal null}. * @return A {@link ByteBuffer} that maps the file channel to memory. */
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 5.6K bytes - Click Count (0) -
docs/zh/docs/tutorial/request-files.md
## 定义 `File` 参数 { #define-file-parameters } 像为 `Body` 或 `Form` 一样创建文件参数: {* ../../docs_src/request_files/tutorial001_an_py310.py hl[9] *} /// info | 信息 `File` 是直接继承自 `Form` 的类。 但要注意,从 `fastapi` 导入的 `Query`、`Path`、`File` 等项,实际上是返回特定类的函数。 /// /// tip | 提示 声明文件体必须使用 `File`,否则,这些参数会被当作查询参数或请求体(JSON)参数。 /// 文件将作为「表单数据」上传。 如果把*路径操作函数*参数的类型声明为 `bytes`,**FastAPI** 会为你读取文件,并以 `bytes` 的形式接收其内容。Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Mar 20 17:06:37 GMT 2026 - 6.8K bytes - Click Count (0)