Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 152 for myFile (0.13 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. docs/ja/docs/tutorial/path-params.md

      "message": "Deep Learning FTW!"
    }
    ```
    
    ## パスを含んだパスパラメータ
    
    パス `/files/{file_path}` となる *path operation* を持っているとしましょう。
    
    ただし、 `home/johndoe/myfile.txt` のような*パス*を含んだ `file_path` が必要です。
    
    したがって、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
    - 10.6K bytes
    - Viewed (0)
  10. tensorflow/compiler/aot/tfcompile_main.cc

        "header file that gives access to the functionality in the object file.\n"
        "A typical invocation looks like this:\n"
        "\n"
        "   $ tfcompile --graph=mygraph.pb --config=myfile.pbtxt "
        "--cpp_class=\"mynamespace::MyComputation\"\n"
        "\n";
    
    }  // end namespace tfcompile
    }  // end namespace tensorflow
    
    int main(int argc, char** argv) {
      tensorflow::tfcompile::MainFlags flags;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Sep 06 19:12:29 UTC 2023
    - 3.6K bytes
    - Viewed (0)
Back to top