Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1971 - 1980 of 8,618 for http2 (0.31 sec)

  1. docs/zh/docs/advanced/wsgi.md

    现在,所有定义在 `/v1/` 路径下的请求将会被 Flask 应用处理。
    
    其余的请求则会被 **FastAPI** 处理。
    
    如果您使用 Uvicorn 运行应用实例并且访问 <a href="http://localhost:8000/v1/" class="external-link" target="_blank">http://localhost:8000/v1/</a>,您将会看到由 Flask 返回的响应:
    
    ```txt
    Hello, World from Flask!
    ```
    
    并且如果您访问 <a href="http://localhost:8000/v2" class="external-link" target="_blank">http://localhost:8000/v2</a>,您将会看到由 FastAPI 返回的响应:
    
    ```JSON
    {
        "message": "Hello World"
    }
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. tests/test_exception_handlers.py

    
    @app.get("/server-error")
    def route_with_server_error():
        raise RuntimeError("Oops!")
    
    
    def test_override_http_exception():
        response = client.get("/http-exception")
        assert response.status_code == 200
        assert response.json() == {"exception": "http-exception"}
    
    
    def test_override_request_validation_exception():
        response = client.get("/request-validation/invalid")
        assert response.status_code == 200
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Tue Dec 03 22:37:12 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  3. LICENSES/third_party/forked/libcontainer/NOTICE

    This product includes software developed at Docker, Inc. (http://www.docker.com).
    
    The following is courtesy of our legal counsel:
    
    
    Use and transfer of Docker may be subject to certain restrictions by the
    United States and other governments.  
    It is your responsibility to ensure that your use and/or transfer does not
    violate applicable laws. 
    
    For more information, please see http://www.bis.doc.gov
    
    Registered: Fri Dec 26 09:05:12 UTC 2025
    - Last Modified: Tue Oct 22 13:56:22 UTC 2024
    - 518 bytes
    - Viewed (0)
  4. internal/http/close.go

    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    import (
    	"io"
    
    	xioutil "github.com/minio/minio/internal/ioutil"
    )
    
    // DrainBody close non nil response with any response Body.
    // convenient wrapper to drain any remaining data on response body.
    //
    // Subsequently this allows golang http RoundTripper
    // to reuse the same connection for future requests.
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Thu Jan 18 07:03:17 UTC 2024
    - 1.7K bytes
    - Viewed (0)
  5. docs/zh/docs/advanced/additional-status-codes.md

    **FastAPI** 会自动使用默认的状态码或者使用你在 *路径操作* 中设置的状态码。
    
    ## 额外的状态码
    
    如果你想要返回主要状态码之外的状态码,你可以通过直接返回一个 `Response` 来实现,比如 `JSONResponse`,然后直接设置额外的状态码。
    
    例如,假设你想有一个 *路径操作* 能够更新条目,并且更新成功时返回 200 「成功」 的 HTTP 状态码。
    
    但是你也希望它能够接受新的条目。并且当这些条目不存在时,会自动创建并返回 201 「创建」的 HTTP 状态码。
    
    要实现它,导入 `JSONResponse`,然后在其中直接返回你的内容,并将 `status_code` 设置为为你要的值。
    
    {* ../../docs_src/additional_status_codes/tutorial001.py hl[4,25] *}
    
    /// warning | 警告
    
    Registered: Sun Dec 28 07:19:09 UTC 2025
    - Last Modified: Mon Nov 18 02:25:44 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  6. internal/http/lambda-headers.go

    // GNU Affero General Public License for more details.
    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package http
    
    // Object Lambda headers
    const (
    	AmzRequestRoute = "x-amz-request-route"
    	AmzRequestToken = "x-amz-request-token"
    
    	AmzFwdStatus                   = "x-amz-fwd-status"
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Tue Mar 07 16:12:41 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. compat/maven-resolver-provider/src/test/resources/repo/ut/simple/parent/maven-metadata.xml

      ~ specific language governing permissions and limitations
      ~ under the License.
    -->
    
    <metadata xmlns="http://maven.apache.org/METADATA/1.1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/METADATA/1.1.0 http://maven.apache.org/xsd/metadata-1.1.0.xsd">
      <groupId>ut.simple</groupId>
      <artifactId>parent</artifactId>
      <versioning>
        <latest>1.0</latest>
    Registered: Sun Dec 28 03:35:09 UTC 2025
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  8. src/main/resources/crawler/opensearch.xml

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE components PUBLIC "-//DBFLUTE//DTD LastaDi 1.0//EN" 
    	"http://dbflute.org/meta/lastadi10.dtd">
    <components>
    	<component name="fesenClient"
    		class="org.codelibs.fess.opensearch.client.CrawlerEngineClient">
    	</component>
    Registered: Sat Dec 20 09:19:18 UTC 2025
    - Last Modified: Thu Oct 30 05:29:49 UTC 2025
    - 283 bytes
    - Viewed (0)
  9. fess-crawler-opensearch/src/test/java/org/codelibs/fess/crawler/service/impl/OpenSearchUrlFilterServiceTest.java

            assertTrue(patterns.get(0).matcher("http://example.com/page1").matches());
            assertFalse(patterns.get(0).matcher("http://other.com/page1").matches());
    
            urlFilterService.delete(sessionId);
        }
    
        public void test_addExcludeUrlFilter_singleTx() {
            final String sessionId = "session2";
            final String urlPattern = "http://example.com/admin/.*";
    
    Registered: Sat Dec 20 11:21:39 UTC 2025
    - Last Modified: Mon Nov 24 03:59:47 UTC 2025
    - 11.4K bytes
    - Viewed (0)
  10. cmd/acl-handlers.go

    //
    // You should have received a copy of the GNU Affero General Public License
    // along with this program.  If not, see <http://www.gnu.org/licenses/>.
    
    package cmd
    
    import (
    	"encoding/xml"
    	"io"
    	"net/http"
    
    	xhttp "github.com/minio/minio/internal/http"
    	"github.com/minio/minio/internal/logger"
    	"github.com/minio/mux"
    	"github.com/minio/pkg/v3/policy"
    )
    
    Registered: Sun Dec 28 19:28:13 UTC 2025
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 8.4K bytes
    - Viewed (0)
Back to top