Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,190 for world (0.16 sec)

  1. maven-builder-support/src/test/java/org/apache/maven/building/StringSourceTest.java

            StringSource source = new StringSource("Hello World!");
    
            try (InputStream is = source.getInputStream();
                    Scanner scanner = new Scanner(is)) {
                assertEquals("Hello World!", scanner.nextLine());
            }
        }
    
        @Test
        void testGetLocation() {
            StringSource source = new StringSource("Hello World!");
            assertEquals("(memory)", source.getLocation());
    
    Java
    - Registered: Sun Apr 28 03:35:10 GMT 2024
    - Last Modified: Sat Apr 15 17:24:20 GMT 2023
    - 1.8K bytes
    - Viewed (0)
  2. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

      }
    
      @Override public void onOpen(WebSocket webSocket, Response response) {
        webSocket.send("Hello...");
        webSocket.send("...World!");
        webSocket.send(ByteString.decodeHex("deadbeef"));
        webSocket.close(1000, "Goodbye, World!");
      }
    
      @Override public void onMessage(WebSocket webSocket, String text) {
        System.out.println("MESSAGE: " + text);
      }
    
    Java
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 04 11:40:21 GMT 2024
    - 1.6K bytes
    - Viewed (0)
  3. tests/test_router_redirect_slashes.py

    from fastapi.testclient import TestClient
    
    
    def test_redirect_slashes_enabled():
        app = FastAPI()
        router = APIRouter()
    
        @router.get("/hello/")
        def hello_page() -> str:
            return "Hello, World!"
    
        app.include_router(router)
    
        client = TestClient(app)
    
        response = client.get("/hello/", follow_redirects=False)
        assert response.status_code == 200
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Jun 22 10:37:50 GMT 2023
    - 974 bytes
    - Viewed (0)
  4. docs_src/wsgi/tutorial001.py

    from markupsafe import escape
    
    flask_app = Flask(__name__)
    
    
    @flask_app.route("/")
    def flask_main():
        name = request.args.get("name", "World")
        return f"Hello, {escape(name)} from Flask!"
    
    
    app = FastAPI()
    
    
    @app.get("/v2")
    def read_main():
        return {"message": "Hello World"}
    
    
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Tue May 09 14:32:00 GMT 2023
    - 443 bytes
    - Viewed (0)
  5. maven-core/src/test/resources/org/apache/maven/extension/test-extension-repo/org/codehaus/plexus/plexus-classworlds/1.2-alpha-10/plexus-classworlds-1.2-alpha-10.jar

    ClassWorldException extends Exception { private ClassWorld world; public void ClassWorldException(ClassWorld); public void ClassWorldException(ClassWorld, String); public ClassWorld getWorld(); } org/codehaus/classworlds/ClassWorldReverseAda.class package org.codehaus.classworlds; public synchronized class ClassWorldReverseAda extends org.codehaus.plexus.classworlds.ClassWorld { private static java.util.HashMap instances; private ClassWorld world; public static ClassWorldReverseAda getInstance(ClassWorld);...
    Archive
    - Registered: Sun Mar 31 03:35:09 GMT 2024
    - Last Modified: Tue Oct 16 20:15:40 GMT 2007
    - 41.5K bytes
    - Viewed (0)
  6. tests/main_test.go

    	if count1 != count2 {
    		t.Errorf("No user should not be deleted by invalid SQL")
    	}
    }
    
    func TestSetAndGet(t *testing.T) {
    	if value, ok := DB.Set("hello", "world").Get("hello"); !ok {
    		t.Errorf("Should be able to get setting after set")
    	} else if value.(string) != "world" {
    		t.Errorf("Set value should not be changed")
    	}
    
    	if _, ok := DB.Get("non_existing"); ok {
    		t.Errorf("Get non existing key should return error")
    	}
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  7. cmd/xl-storage_unix_test.go

    	if err = disk.AppendFile(context.Background(), testCase.volName, pathJoin("hello-world.txt", xlStorageFormatFile), []byte("Hello World")); err != nil {
    		t.Fatalf("Create a file `test` failed with %s expected to pass.", err)
    	}
    
    	// CheckFile - stat the file.
    	if _, err := disk.StatInfoFile(context.Background(), testCase.volName, "hello-world.txt/"+xlStorageFormatFile, false); err != nil {
    Go
    - Registered: Sun Apr 28 19:28:10 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 3.4K bytes
    - Viewed (0)
  8. internal/grid/grid_test.go

    	remoteConn := local.Connection(remoteHost)
    	remoteConn.WaitForConnect(context.Background())
    	defer testlogger.T.SetErrorTB(t)()
    
    	t.Run("localToRemote", func(t *testing.T) {
    		const testPayload = "Hello Grid World!"
    
    		start := time.Now()
    		resp, err := remoteConn.Request(context.Background(), handlerTest, []byte(testPayload))
    		errFatal(err)
    		if string(resp) != testPayload {
    Go
    - Registered: Sun Apr 21 19:28:08 GMT 2024
    - Last Modified: Thu Feb 08 18:15:27 GMT 2024
    - 30.1K bytes
    - Viewed (0)
  9. docs/de/docs/advanced/wsgi.md

    ```txt
    Hello, World from Flask!
    ```
    
    Und wenn Sie auf <a href="http://localhost:8000/v2" class="external-link" target="_blank">http://localhost:8000/v2</a> gehen, sehen Sie die Response von FastAPI:
    
    ```JSON
    {
        "message": "Hello World"
    }
    Plain Text
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Sat Mar 30 20:17:05 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  10. docs_src/response_headers/tutorial001.py

    from fastapi import FastAPI
    from fastapi.responses import JSONResponse
    
    app = FastAPI()
    
    
    @app.get("/headers/")
    def get_headers():
        content = {"message": "Hello World"}
        headers = {"X-Cat-Dog": "alone in the world", "Content-Language": "en-US"}
    Python
    - Registered: Sun Apr 28 07:19:10 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 309 bytes
    - Viewed (0)
Back to top