Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 24 for 302 (0.02 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. 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)
  5. 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)
  6. 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)
  7. 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)
  8. 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)
  9. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyDispatcher.java

    import org.apache.maven.execution.ExecutionListener;
    import org.eclipse.aether.RepositoryListener;
    import org.slf4j.Logger;
    import org.slf4j.LoggerFactory;
    
    /**
     * Dispatches callbacks to all registered EventSpies.
     * @since 3.0.2
     */
    @Named
    @Singleton
    public class EventSpyDispatcher {
        private final Logger logger = LoggerFactory.getLogger(getClass());
    
        private final List<EventSpy> eventSpies;
    
        @Inject
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. impl/maven-core/src/main/java/org/apache/maven/eventspy/internal/EventSpyRepositoryListener.java

    import org.eclipse.aether.AbstractRepositoryListener;
    import org.eclipse.aether.RepositoryEvent;
    import org.eclipse.aether.RepositoryListener;
    
    /**
     * Forwards repository events to EventSpies.
     * @since 3.0.2
     */
    class EventSpyRepositoryListener extends AbstractRepositoryListener {
        private final EventSpyDispatcher dispatcher;
    
        private final RepositoryListener delegate;
    
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.3K bytes
    - Viewed (0)
Back to top