Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 274 for World (0.17 sec)

  1. docs_src/response_headers/tutorial002.py

    from fastapi import FastAPI, Response
    
    app = FastAPI()
    
    
    @app.get("/headers-and-object/")
    def get_headers(response: Response):
        response.headers["X-Cat-Dog"] = "alone in the world"
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 222 bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/base/ToStringHelperTest.java

                .add("field2", "Googley")
                .omitNullValues()
                .add("field3", "World")
                .toString();
        assertEquals("TestClass{field1=Hello, field2=Googley, field3=World}", toTest);
      }
    
      public void testToStringHelperWithArrays() {
        String[] strings = {"hello", "world"};
        int[] ints = {2, 42};
        Object[] objects = {"obj"};
        String[] arrayWithNull = {null};
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 21:24:55 GMT 2024
    - 15.6K bytes
    - Viewed (0)
  3. docs_src/app_testing/tutorial001.py

    from fastapi.testclient import TestClient
    
    app = FastAPI()
    
    
    @app.get("/")
    async def read_main():
        return {"msg": "Hello World"}
    
    
    client = TestClient(app)
    
    
    def test_read_main():
        response = client.get("/")
        assert response.status_code == 200
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Mar 26 19:09:53 GMT 2020
    - 334 bytes
    - Viewed (0)
  4. tests/test_tutorial/test_wsgi/test_tutorial001.py

        response = client.get("/v1/")
        assert response.status_code == 200, response.text
        assert response.text == "Hello, World from Flask!"
    
    
    def test_app():
        response = client.get("/v2")
        assert response.status_code == 200, response.text
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Thu Jul 09 18:06:12 GMT 2020
    - 436 bytes
    - Viewed (0)
  5. 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)
  6. .github/ISSUE_TEMPLATE/feature_addition_request.yaml

    
            Did you *actually* encounter the need for this feature in a real-world scenario, or is it
            just a feature that seems like a sensible addition to Guava?
    
    
            Before new features get added to Guava, we really want to be sure that it's for a use case
            that actually comes up in the real world. We want to hear the real-world use case so the
    Others
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Nov 17 18:47:47 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  7. tests/test_orjson_response_class.py

    @app.get("/orjson_non_str_keys")
    def get_orjson_non_str_keys():
        key = quoted_name(value="msg", quote=False)
        return {key: "Hello World", 1: 1}
    
    
    client = TestClient(app)
    
    
    def test_orjson_non_str_keys():
        with client:
            response = client.get("/orjson_non_str_keys")
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Fri Sep 02 10:17:31 GMT 2022
    - 562 bytes
    - Viewed (0)
  8. 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 21 09:35:09 GMT 2024
    - Last Modified: Thu Mar 24 01:31:58 GMT 2022
    - 1.4K bytes
    - Viewed (0)
  9. tests/test_default_response_class_router.py

    router_b_a = APIRouter()
    router_b_a_c_override = APIRouter()  # Overrides default class again
    
    
    @app.get("/")
    def get_root():
        return {"msg": "Hello World"}
    
    
    @app.get("/override", response_class=PlainTextResponse)
    def get_path_override():
        return "Hello World"
    
    
    @router_a.get("/")
    def get_a():
        return {"msg": "Hello A"}
    
    
    @router_a.get("/override", response_class=PlainTextResponse)
    Python
    - Registered: Sun Apr 21 07:19:11 GMT 2024
    - Last Modified: Sun Mar 01 20:49:20 GMT 2020
    - 5K bytes
    - Viewed (0)
  10. 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 21 07:19:11 GMT 2024
    - Last Modified: Thu Jun 22 10:37:50 GMT 2023
    - 974 bytes
    - Viewed (0)
Back to top