Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for 302 (0.05 sec)

  1. tests/test_tutorial/test_custom_response/test_tutorial006c.py

    from docs_src.custom_response.tutorial006c_py39 import app
    
    client = TestClient(app)
    
    
    def test_redirect_status_code():
        response = client.get("/pydantic", follow_redirects=False)
        assert response.status_code == 302
        assert response.headers["location"] == "https://docs.pydantic.dev/"
    
    
    def test_openapi_schema():
        response = client.get("/openapi.json")
        assert response.status_code == 200, response.text
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 904 bytes
    - Viewed (0)
  2. docs_src/custom_response/tutorial006c_py39.py

    from fastapi import FastAPI
    from fastapi.responses import RedirectResponse
    
    app = FastAPI()
    
    
    @app.get("/pydantic", response_class=RedirectResponse, status_code=302)
    async def redirect_pydantic():
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 237 bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/rtinfo/RuntimeInformation.java

     * under the License.
     */
    package org.apache.maven.rtinfo;
    
    /**
     * Provides information about the current Maven runtime.
     *
     * @since 3.0.2
     */
    public interface RuntimeInformation {
    
        /**
         * Retrieves the current Maven version, for example "3.0.2".
         *
         * @return The current Maven version or an empty string if unknown, never {@code null}.
         */
        String getMavenVersion();
    
        /**
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/Smb2ConstantsTest.java

                assertEquals(0x0300, Smb2Constants.SMB2_DIALECT_0300, "SMB 3.0 dialect must be 0x0300");
            }
    
            @Test
            @DisplayName("SMB 3.0.2 dialect should be 0x0302")
            void testDialect0302() {
                assertEquals(0x0302, Smb2Constants.SMB2_DIALECT_0302, "SMB 3.0.2 dialect must be 0x0302");
            }
    
            @Test
            @DisplayName("SMB 3.1.1 dialect should be 0x0311")
            void testDialect0311() {
    Registered: Sat Dec 20 13:44:44 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  5. docs_src/additional_responses/tutorial004_py310.py

    from fastapi.responses import FileResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    responses = {
        404: {"description": "Item not found"},
        302: {"description": "The item was moved"},
        403: {"description": "Not enough privileges"},
    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 10 08:55:32 UTC 2025
    - 669 bytes
    - Viewed (0)
  6. compat/maven-plugin-api/src/main/java/org/apache/maven/plugin/descriptor/PluginDescriptor.java

            return description;
        }
    
        /**
         * Set required Maven version, as defined in plugin's pom.xml since 3.0.2,
         * as defined in plugin.xml since 4.0.0-alpha-3.
         *
         * @param requiredMavenVersion Maven version required by the plugin
         * @since 3.0.2
         */
        // used by maven-core's org.apache.maven.plugin.internal.DefaultMavenPluginManager#getPluginDescriptor(...)
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  7. docs_src/additional_responses/tutorial004_py39.py

    from fastapi.responses import FileResponse
    from pydantic import BaseModel
    
    
    class Item(BaseModel):
        id: str
        value: str
    
    
    responses = {
        404: {"description": "Item not found"},
        302: {"description": "The item was moved"},
        403: {"description": "Not enough privileges"},
    }
    
    
    app = FastAPI()
    
    
    @app.get(
        "/items/{item_id}",
        response_model=Item,
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Wed Dec 17 20:41:43 UTC 2025
    - 701 bytes
    - Viewed (0)
  8. impl/maven-core/src/main/java/org/apache/maven/eventspy/AbstractEventSpy.java

     * specific language governing permissions and limitations
     * under the License.
     */
    package org.apache.maven.eventspy;
    
    /**
     * A skeleton eventspy that does nothing other than helping implementors.
     * @since 3.0.2
     */
    public abstract class AbstractEventSpy implements EventSpy {
    
        @Override
        public void init(Context context) throws Exception {}
    
        @Override
        public void onEvent(Object event) throws Exception {}
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  9. impl/maven-core/src/main/java/org/apache/maven/eventspy/EventSpy.java

     * Implementors are strongly advised to inherit from {@link AbstractEventSpy} instead of directly implementing this
     * interface.
     * @since 3.0.2
     */
    public interface EventSpy {
        /**
         * Context
         */
        interface Context {
    
            /**
             * Gets key-value pairs providing information about the Maven runtime.
             *
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Mon Feb 10 15:02:53 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  10. tests/test_tutorial/test_additional_responses/test_tutorial004.py

            "paths": {
                "/items/{item_id}": {
                    "get": {
                        "responses": {
                            "404": {"description": "Item not found"},
                            "302": {"description": "The item was moved"},
                            "403": {"description": "Not enough privileges"},
                            "200": {
                                "description": "Successful Response",
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Sat Dec 27 18:19:10 UTC 2025
    - 4.9K bytes
    - Viewed (0)
Back to top