- Sort Score
- Result 10 results
- Languages All
Results 371 - 380 of 1,555 for helpers (0.27 sec)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/Response.kt
) = apply { headers.add(name, value) } /** Removes all headers named [name] on this builder. */ open fun removeHeader(name: String) = apply { headers.removeAll(name) } /** Removes all headers on this builder and adds [headers]. */ open fun headers(headers: Headers) = apply { this.headers = headers.newBuilder() }Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Mon Jul 28 14:39:28 UTC 2025 - 18.1K bytes - Viewed (0) -
tests/test_request_params/test_header/test_optional_list.py
@pytest.mark.parametrize( "path", ["/optional-list-str", "/model-optional-list-str"], ) def test_optional_list_str(path: str): client = TestClient(app) response = client.get(path, headers=[("p", "hello"), ("p", "world")]) assert response.status_code == 200 assert response.json() == {"p": ["hello", "world"]} # =====================================================================================
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 9.3K bytes - Viewed (0) -
tests/test_tutorial/test_security/test_tutorial005.py
assert response.json() == {"detail": "Not authenticated"} assert response.headers["WWW-Authenticate"] == "Bearer" def test_token(mod: ModuleType): client = TestClient(mod.app) access_token = get_access_token(scope="me", client=client) response = client.get( "/users/me", headers={"Authorization": f"Bearer {access_token}"} ) assert response.status_code == 200, response.text
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 18:19:10 UTC 2025 - 15.8K bytes - Viewed (0) -
docs_src/response_headers/tutorial001_py39.py
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Wed Dec 17 20:41:43 UTC 2025 - 309 bytes - Viewed (0) -
docs/en/docs/tutorial/header-params.md
/// warning Before setting `convert_underscores` to `False`, bear in mind that some HTTP proxies and servers disallow the usage of headers with underscores. /// ## Duplicate headers { #duplicate-headers } It is possible to receive duplicate headers. That means, the same header with multiple values. You can define those cases using a list in the type declaration.Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Aug 31 09:15:41 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/CurlResponse.java
return contentException; } /** * Sets the headers for the response. * * @param headers the headers to set. */ public void setHeaders(final Map<String, List<String>> headers) { if (headers != null) { final Map<String, List<String>> map = new HashMap<>(); headers.entrySet().stream().filter(e -> e.getKey() != null).forEach(Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Mon Nov 24 03:10:07 UTC 2025 - 7K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/impl/MimeTypeHelperImpl.java
import org.codelibs.fess.crawler.exception.CrawlerSystemException; import org.codelibs.fess.crawler.exception.MimeTypeException; import org.codelibs.fess.crawler.helper.MimeTypeHelper; /** * MimeTypeHelperImpl is a helper class that detects the MIME type of a given input stream or filename. * It uses the Apache Tika library to detect the MIME type. * * <p> * This class provides methods to: * </p>
Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sun Nov 23 12:19:14 UTC 2025 - 6.6K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java
import org.codelibs.fess.app.web.api.admin.FessApiAdminAction; import org.codelibs.fess.app.web.api.admin.searchlist.ApiAdminSearchlistAction; import org.codelibs.fess.helper.CrawlingConfigHelper; import org.codelibs.fess.helper.CrawlingInfoHelper; import org.codelibs.fess.helper.LanguageHelper; import org.codelibs.fess.opensearch.client.SearchEngineClient; import org.codelibs.fess.thumbnail.ThumbnailManager; import org.codelibs.fess.util.ComponentUtil;
Registered: Sat Dec 20 09:19:18 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 8.3K bytes - Viewed (0) -
docs/zh/docs/tutorial/header-param-models.md
**FastAPI** 将从请求中接收到的 **headers** 中**提取**出**每个字段**的数据,并提供您定义的 Pydantic 模型。 ## 查看文档 您可以在文档 UI 的 `/docs` 中查看所需的 headers: <div class="screenshot"> <img src="/img/tutorial/header-param-models/image01.png"> </div> ## 禁止额外的 Headers 在某些特殊使用情况下(可能并不常见),您可能希望**限制**您想要接收的 headers。 您可以使用 Pydantic 的模型配置来禁止( `forbid` )任何额外( `extra` )字段:
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sun Dec 15 16:44:11 UTC 2024 - 1.7K bytes - Viewed (0) -
fastapi/datastructures.py
filename: Annotated[Optional[str], Doc("The original file name.")] size: Annotated[Optional[int], Doc("The size of the file in bytes.")] headers: Annotated[Headers, Doc("The headers of the request.")] content_type: Annotated[ Optional[str], Doc("The content type of the request, from the headers.") ] async def write( self, data: Annotated[ bytes, Doc( """
Registered: Sun Dec 28 07:19:09 UTC 2025 - Last Modified: Sat Dec 27 12:54:56 UTC 2025 - 5.1K bytes - Viewed (0)