- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 32 for getClient (0.06 seconds)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactory.java
* Retrieves a client that matches the given URL key. * @param urlKey The URL key to match. * @return The matching CrawlerClient instance, or null if no match is found. */ public CrawlerClient getClient(final String urlKey) { if (StringUtil.isBlank(urlKey)) { return null; } for (final Map.Entry<Pattern, CrawlerClient> entry : clientMap.entrySet()) {Created: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Mon Nov 24 03:59:47 GMT 2025 - 7.3K bytes - Click Count (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/client/CrawlerClientFactoryWrapper.java
* @param url The URL to match. * @return The matching CrawlerClient instance. */ @Override public CrawlerClient getClient(final String url) { return factory.getClient(url); } /** * Sets the client map for the wrapped factory. * @param clientMap The map of clients. */ @OverrideCreated: Sun Apr 12 03:50:13 GMT 2026 - Last Modified: Sun Jul 06 02:13:03 GMT 2025 - 5.2K bytes - Click Count (10) -
tests/test_regex_deprecated_params.py
return client @needs_py310 def test_query_params_str_validations_no_query(): client = get_client() response = client.get("/items/") assert response.status_code == 200 assert response.json() == "Hello World" @needs_py310 def test_query_params_str_validations_q_fixedquery(): client = get_client() response = client.get("/items/", params={"q": "fixedquery"}) assert response.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sun Feb 08 10:18:38 GMT 2026 - 5.1K bytes - Click Count (0) -
tests/test_regex_deprecated_body.py
client = TestClient(app) return client @needs_py310 def test_no_query(): client = get_client() response = client.post("/items/") assert response.status_code == 200 assert response.json() == "Hello World" @needs_py310 def test_q_fixedquery(): client = get_client() response = client.post("/items/", data={"q": "fixedquery"}) assert response.status_code == 200Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Feb 04 14:34:02 GMT 2026 - 5.4K bytes - Click Count (0) -
tests/test_tutorial/test_conditional_openapi/test_tutorial001.py
from inline_snapshot import snapshot def get_client() -> TestClient: from docs_src.conditional_openapi import tutorial001_py310 importlib.reload(tutorial001_py310) client = TestClient(tutorial001_py310.app) return client def test_disable_openapi(monkeypatch): monkeypatch.setenv("OPENAPI_URL", "") # Load the client after setting the env var client = get_client() response = client.get("/openapi.json")Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.8K bytes - Click Count (0) -
tests/test_stringified_annotation_dependency.py
return ["John Doe", "Jane Doe"] async def close(self) -> None: pass async def get_client() -> AsyncGenerator[DummyClient, None]: client = DummyClient() yield client await client.close() Client = Annotated[DummyClient, Depends(get_client)] @pytest.fixture(name="client") def client_fixture() -> TestClient: app = FastAPI() @app.get("/")
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Wed Dec 17 21:25:59 GMT 2025 - 2.2K bytes - Click Count (0) -
samples/tlssurvey/src/main/kotlin/okhttp3/survey/ssllabs/SslLabsApi.kt
* See the License for the specific language governing permissions and * limitations under the License. */ package okhttp3.survey.ssllabs import retrofit2.http.GET interface SslLabsApi { @GET("getClients") suspend fun clients(): List<UserAgentCapabilities> companion object { const val BASE_URL = "https://api.ssllabs.com/api/v3/" }Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Apr 02 01:44:15 GMT 2024 - 844 bytes - Click Count (0) -
tests/test_tutorial/test_background_tasks/test_tutorial002.py
@pytest.fixture( name="client", params=[ pytest.param("tutorial002_py310", marks=needs_py310), pytest.param("tutorial002_an_py310", marks=needs_py310), ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module(f"docs_src.background_tasks.{request.param}") client = TestClient(mod.app) return client @workdir_lock def test(client: TestClient):
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Fri Feb 27 10:53:47 GMT 2026 - 968 bytes - Click Count (0) -
tests/test_schema_ref_pydantic_v2.py
import pytest from fastapi import FastAPI from fastapi.testclient import TestClient from inline_snapshot import snapshot from pydantic import BaseModel, ConfigDict, Field @pytest.fixture(name="client") def get_client(): app = FastAPI() class ModelWithRef(BaseModel): ref: str = Field(validation_alias="$ref", serialization_alias="$ref") model_config = ConfigDict(validate_by_alias=True, serialize_by_alias=True)
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Sat Dec 20 15:55:38 GMT 2025 - 2.1K bytes - Click Count (0) -
tests/test_tutorial/test_authentication_error_status_code/test_tutorial001.py
import importlib import pytest from fastapi.testclient import TestClient from inline_snapshot import snapshot @pytest.fixture( name="client", params=[ "tutorial001_an_py310", ], ) def get_client(request: pytest.FixtureRequest): mod = importlib.import_module( f"docs_src.authentication_error_status_code.{request.param}" ) client = TestClient(mod.app) return client
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 12 13:19:43 GMT 2026 - 1.9K bytes - Click Count (0)