- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 176 for myFile (0.44 sec)
-
docs/zh/docs/tutorial/path-params.md
{ "model_name": "alexnet", "message": "Deep Learning FTW!" } ``` ## 包含路径的路径参数 假设*路径操作*的路径为 `/files/{file_path}`。 但需要 `file_path` 中也包含*路径*,比如,`home/johndoe/myfile.txt`。 此时,该文件的 URL 是这样的:`/files/home/johndoe/myfile.txt`。 ### OpenAPI 支持 OpenAPI 不支持声明包含路径的*路径参数*,因为这会导致测试和定义更加困难。 不过,仍可使用 Starlette 内置工具在 **FastAPI** 中实现这一功能。 而且不影响文档正常运行,但是不会添加该参数包含路径的说明。 ### 路径转换器
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Mon Apr 01 05:35:40 UTC 2024 - 7.6K bytes - Viewed (0) -
docs/en/docs/tutorial/request-files.md
* `read(size)`: Reads `size` (`int`) bytes/characters of the file. * `seek(offset)`: Goes to the byte position `offset` (`int`) in the file. * E.g., `await myfile.seek(0)` would go to the start of the file. * This is especially useful if you run `await myfile.read()` once and then need to read the contents again. * `close()`: Closes the file. As all these methods are `async` methods, you need to "await" them.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 10.2K bytes - Viewed (0) -
docs/de/docs/tutorial/path-params.md
Angenommen, Sie haben eine *Pfadoperation* mit einem Pfad `/files/{file_path}`. Aber `file_path` soll selbst einen *Pfad* enthalten, etwa `home/johndoe/myfile.txt`. Sprich, die URL für diese Datei wäre etwas wie: `/files/home/johndoe/myfile.txt`. ### OpenAPI Unterstützung
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Sat Mar 30 20:28:59 UTC 2024 - 10.3K bytes - Viewed (0) -
platforms/jvm/testing-jvm/src/integTest/groovy/org/gradle/testing/TestInputAnnotationFailuresIntegrationTest.groovy
'File' | 'myField' | "File myField = project.layout.projectDirectory.file('myFile.txt').getAsFile()" | 'myField.absolutePath' 'RegularFile' | 'myField' | "RegularFile myField = project.layout.projectDirectory.file('myFile.txt')" | 'myField.getAsFile().absolutePath'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Sep 18 20:52:40 UTC 2023 - 10.6K bytes - Viewed (0) -
platforms/software/resources-gcs/src/test/groovy/org/gradle/internal/resource/transport/gcp/gcs/GcsClientTest.groovy
URI uri = new URI("gcs://localhost/maven/snapshot/myFile.txt") when: client.put(Mock(InputStream), 12L, uri) then: 1 * storage.objects(*_) >> Mock(Storage.Objects) { 1 * insert(*_) >> { args -> assert (args.getAt(0) as String) == 'localhost' assert (args[1] as StorageObject).getName() == 'maven/snapshot/myFile.txt'
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Oct 12 19:38:08 UTC 2023 - 5.4K bytes - Viewed (0) -
docs/pt/docs/tutorial/path-params.md
Digamos que você tenha uma *operação de rota* com uma rota `/files/{file_path}`. Mas você precisa que o próprio `file_path` contenha uma *rota*, como `home/johndoe/myfile.txt`. Então, a URL para este arquivo deveria ser algo como: `/files/home/johndoe/myfile.txt`. ### Suporte do OpenAPI
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Thu Apr 18 19:53:19 UTC 2024 - 9.7K bytes - Viewed (0) -
src/mime/multipart/writer_test.go
"net/textproto" "strings" "testing" ) func TestWriter(t *testing.T) { fileContents := []byte("my file contents") var b bytes.Buffer w := NewWriter(&b) { part, err := w.CreateFormFile("myfile", "my-file.txt") if err != nil { t.Fatalf("CreateFormFile: %v", err) } part.Write(fileContents) err = w.WriteField("key", "val") if err != nil { t.Fatalf("WriteField: %v", err) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 06 17:36:47 UTC 2022 - 4.1K bytes - Viewed (0) -
docs/ko/docs/tutorial/path-params.md
"message": "Deep Learning FTW!" } ``` ## 경로를 포함하는 경로 매개변수 경로를 포함하는 *경로 작동* `/files/{file_path}`이 있다고 해봅시다. 그런데 이 경우 `file_path` 자체가 `home/johndoe/myfile.txt`와 같은 경로를 포함해야 합니다. 이때 해당 파일의 URL은 다음처럼 됩니다: `/files/home/johndoe/myfile.txt`. ### OpenAPI 지원 테스트와 정의가 어려운 시나리오로 이어질 수 있으므로 OpenAPI는 *경로*를 포함하는 *경로 매개변수*를 내부에 선언하는 방법을 지원하지 않습니다. 그럼에도 Starlette의 내부 도구중 하나를 사용하여 **FastAPI**에서는 이가 가능합니다.
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Fri Mar 22 01:42:11 UTC 2024 - 9.8K bytes - Viewed (0) -
cmd/object-api-getobjectinfo_test.go
{"test-getobjectinfo", "Antartica", ObjectInfo{}, ObjectNotFound{Bucket: "test-getobjectinfo", Object: "Antartica"}, false}, {"test-getobjectinfo", "Asia/myfile", ObjectInfo{}, ObjectNotFound{Bucket: "test-getobjectinfo", Object: "Asia/myfile"}, false}, // Valid case with existing object (Test number 12). {"test-getobjectinfo", "Asia/asiapics.jpg", resultCases[0], nil, true},
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Fri Dec 23 15:46:00 UTC 2022 - 5.6K bytes - Viewed (0) -
analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/resolve/extensions/KtResolveExtensionFile.kt
/** * The name a Kotlin file which will be generated. * * Should have the `.kt` extension. * * It will be used as a Java facade name, e.g., for the file name `myFile.kt`, the `MyFileKt` facade is generated if the file contains some properties or functions. * * @see KaResolveExtensionFile */ public abstract fun getFileName(): String /**
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Wed May 22 06:28:34 UTC 2024 - 3.6K bytes - Viewed (0)