Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 211 - 220 of 494 for mellom (0.04 seconds)

  1. docs_src/configure_swagger_ui/tutorial002_py310.py

    from fastapi import FastAPI
    
    app = FastAPI(swagger_ui_parameters={"syntaxHighlight": {"theme": "obsidian"}})
    
    
    @app.get("/users/{username}")
    async def read_user(username: str):
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 221 bytes
    - Click Count (0)
  2. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        Mac mac = Mac.getInstance("HmacSHA1");
        mac.init(SHA1_KEY);
        mac.update("hello".getBytes(UTF_8));
        mac.update("world".getBytes(UTF_8));
    
        assertEquals(
            HashCode.fromBytes(mac.doFinal()),
            hmacSha1(SHA1_KEY).newHasher().putString("hello", UTF_8).putString("world", UTF_8).hash());
      }
    
      public void testMultipleUpdatesDoFinal() throws Exception {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 14.2K bytes
    - Click Count (0)
  3. impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java

                        .build());
                return BAD_OPERATION;
            }
    
            context.addInHeader(context.style.italic().bold().foreground(Colors.rgbColor("yellow")), "goal: init");
            context.addInHeader("");
    
            ConsolePrompt.UiConfig promptConfig;
            if (OSUtils.IS_WINDOWS) {
                promptConfig = new ConsolePrompt.UiConfig(">", "( )", "(x)", "( )");
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Wed Jun 11 13:14:09 GMT 2025
    - 12K bytes
    - Click Count (0)
  4. docs_src/cors/tutorial001_py310.py

    app.add_middleware(
        CORSMiddleware,
        allow_origins=origins,
        allow_credentials=True,
        allow_methods=["*"],
        allow_headers=["*"],
    )
    
    
    @app.get("/")
    async def main():
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Feb 12 13:19:43 GMT 2026
    - 459 bytes
    - Click Count (0)
  5. cmd/server_test.go

    	c.Assert(response.ContentLength, int64(len([]byte("hello world"))))
    	var buffer2 bytes.Buffer
    	// retrieve the contents of response body.
    	n, err := io.Copy(&buffer2, response.Body)
    	c.Assert(err, nil)
    	c.Assert(n, int64(len([]byte("hello world"))))
    	// asserted the contents of the fetched object with the expected result.
    	c.Assert(true, bytes.Equal(buffer2.Bytes(), []byte("hello world")))
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Aug 29 02:39:48 GMT 2025
    - 118.1K bytes
    - Click Count (0)
  6. src/test/java/org/codelibs/fess/suggest/analysis/SuggestAnalyzerTest.java

            String text = "Hello, world! How are you? I'm fine.";
            String field = "content";
            String lang = "en";
    
            List<AnalyzeToken> tokens = analyzer.analyze(text, field, lang);
    
            assertNotNull(tokens);
            assertEquals(8, tokens.size()); // "I'm" is split into "I" and "m" by our simple tokenizer
            assertEquals("Hello", tokens.get(0).getTerm());
    Created: Fri Apr 17 09:08:13 GMT 2026
    - Last Modified: Mon Sep 01 13:33:03 GMT 2025
    - 15.7K bytes
    - Click Count (0)
  7. docs_src/json_base64_bytes/tutorial001_py310.py

    @app.post("/data")
    def post_data(body: DataInput):
        content = body.data.decode("utf-8")
        return {"description": body.description, "content": content}
    
    
    @app.get("/data")
    def get_data() -> DataOutput:
        data = "hello".encode("utf-8")
        return DataOutput(description="A plumbus", data=data)
    
    
    @app.post("/data-in-out")
    def post_data_in_out(body: DataInputOutput) -> DataInputOutput:
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sat Feb 21 13:01:31 GMT 2026
    - 892 bytes
    - Click Count (0)
  8. fastapi/.agents/skills/fastapi/SKILL.md

        q: Annotated[str | None, Query(max_length=50)] = None,
    ):
        return {"message": "Hello World"}
    ```
    
    instead of:
    
    ```python
    # DO NOT DO THIS
    @app.get("/items/{item_id}")
    async def read_item(
        item_id: int = Path(ge=1, description="The item ID"),
        q: str | None = Query(default=None, max_length=50),
    ):
        return {"message": "Hello World"}
    ```
    
    ### For Dependencies
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 10:05:57 GMT 2026
    - 10.1K bytes
    - Click Count (0)
  9. docs/es/docs/deployment/cloud.md

    Puedes usar prácticamente **cualquier proveedor de nube** para desplegar tu aplicación FastAPI.
    
    En la mayoría de los casos, los principales proveedores de nube tienen guías para desplegar FastAPI con ellos.
    
    ## FastAPI Cloud { #fastapi-cloud }
    
    **[FastAPI Cloud](https://fastapicloud.com)** está construido por el mismo autor y equipo detrás de **FastAPI**.
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Thu Mar 19 18:15:55 GMT 2026
    - 1.3K bytes
    - Click Count (0)
  10. tests/test_sse.py

            yield {"name": item.name, "description": item.description}
    
    
    @app.get("/items/stream-sse-event", response_class=EventSourceResponse)
    async def sse_items_event():
        yield ServerSentEvent(data="hello", event="greeting", id="1")
        yield ServerSentEvent(data={"key": "value"}, event="json-data", id="2")
        yield ServerSentEvent(comment="just a comment")
        yield ServerSentEvent(data="retry-test", retry=5000)
    
    
    Created: Sun Apr 05 07:19:11 GMT 2026
    - Last Modified: Sun Mar 01 09:21:52 GMT 2026
    - 9.8K bytes
    - Click Count (0)
Back to Top