- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 32 for mycila (0.29 sec)
-
docs/ko/docs/tutorial/request-files.md
* `seek(offset)`: 파일 내 `offset`(`int`) 위치의 바이트로 이동합니다. * 예) `await myfile.seek(0)` 를 사용하면 파일의 시작부분으로 이동합니다. * `await myfile.read()` 를 사용한 후 내용을 다시 읽을 때 유용합니다. * `close()`: 파일을 닫습니다. 상기 모든 메소드들이 `async` 메소드이기 때문에 “await”을 사용하여야 합니다. 예를들어, `async` *경로 작동 함수*의 내부에서 다음과 같은 방식으로 내용을 가져올 수 있습니다: ```Python contents = await myfile.read() ``` 만약 일반적인 `def` *경로 작동 함수*의 내부라면, 다음과 같이 `UploadFile.file` 에 직접 접근할 수 있습니다:
Registered: Mon Jun 17 08:32:26 UTC 2024 - Last Modified: Wed Mar 13 19:02:19 UTC 2024 - 8.1K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/kubelet/client/kubelet_client_test.go
// Invalid certificate and key path TLSClientConfig: KubeletTLSConfig{ CertFile: "../../client/testdata/mycertinvalid.cer", KeyFile: "../../client/testdata/mycertinvalid.key", CAFile: "../../client/testdata/myCA.cer", }, } rt, err := MakeTransport(config) if err == nil { t.Errorf("Expected an error") } if rt != nil { t.Error("rt should be nil as we provided invalid cert file") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 07 01:34:49 UTC 2023 - 2.9K 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) -
platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/UnknownFileSystemNodeTest.groovy
} where: vfsSpec << CHILD_IS_PREFIX.findAll { it.childPaths.size() == 1 } } def "returns empty for snapshot"() { def node = new UnknownFileSystemNode(createChildren(["myFile.txt"])) expect: !node.getSnapshot().present }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:34:50 UTC 2023 - 4.2K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/resources/TextResource.java
/** * A read-only body of text backed by a string, file, archive entry, or other source. * To create a text resource, use one of the factory methods in {@link TextResourceFactory} * (e.g. {@code project.resources.text.fromFile(myFile)}). * * @since 2.2 */ @HasInternalProtocol public interface TextResource extends Buildable { /** * Returns a string containing the resource's text *
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 10 09:43:44 UTC 2018 - 3.1K bytes - Viewed (0)