- Sort Score
- Num 10 results
- Language All
Results 1 - 10 of 133 for agent (0.04 seconds)
-
src/test/java/org/codelibs/fess/helper/UserAgentHelperTest.java
@Test public void test_getUserAgentType_IE9() { getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.0; Trident/5.0)"); assertEquals(UserAgentType.IE, userAgentHelper.getUserAgentType()); } @Test public void test_getUserAgentType_IE10() { getMockRequest().addHeader("user-agent", "Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.2; Trident/6.0)");Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 7.5K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/UserAgentHelper.java
} /** The HTTP header name for User-Agent */ protected static final String USER_AGENT = "user-agent"; /** The request attribute key for storing cached user agent type */ protected static final String USER_AGENT_TYPE = "ViewHelper.UserAgent"; /** * Determines the user agent type from the current HTTP request. * The method analyzes the User-Agent header to categorize the browser typeCreated: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Jul 17 08:28:31 GMT 2025 - 3.5K bytes - Click Count (0) -
tests/test_response_dependency.py
"path": request.url.path, "user_agent": request.headers.get("user-agent", "unknown"), } @app.get("/") def endpoint( info: Annotated[dict, Depends(extract_request_info)], ): return info client = TestClient(app) resp = client.get("/", headers={"user-agent": "test-agent"}) assert resp.status_code == 200
Created: Sun Apr 05 07:19:11 GMT 2026 - Last Modified: Thu Feb 05 18:23:16 GMT 2026 - 5.2K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HeadersJvmTest.kt
assertFailsWith<NullPointerException> { (mapOf("User-Agent" to null) as Map<String, String>).toHeaders() } } @Test fun toMultimapGroupsHeaders() { val headers = Headers.headersOf( "cache-control", "no-cache", "cache-control", "no-store", "user-agent", "OkHttp", ) val headerMap = headers.toMultimap()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue May 27 14:51:25 GMT 2025 - 5.7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt
import okhttp3.internal.EmptyTags class RequestCommonTest { @Test fun constructorNormal() { val url = "https://example.com/".toHttpUrl() val body = "hello".toRequestBody() val headers = headersOf("User-Agent", "RequestTest") val method = "PUT" val request = Request( url = url, headers = headers, method = method, body = body, )Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Feb 03 22:17:59 GMT 2026 - 11K bytes - Click Count (0) -
okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt
.assertLogEqual("--> GET $url http/1.1") .assertLogEqual("Host: $host") .assertLogEqual("Connection: Keep-Alive") .assertLogEqual("Accept-Encoding: gzip") .assertLogMatch(Regex("""User-Agent: okhttp/.+""")) .assertLogEqual("--> END GET") .assertLogMatch(Regex("""<-- 200 OK $url \(\d+ms\)""")) .assertLogEqual("Content-Length: 0") .assertLogEqual("<-- END HTTP") .assertNoMoreLogs()
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Nov 07 02:57:33 GMT 2025 - 39.4K bytes - Click Count (0) -
internal/http/transports.go
} } // uaTransport - User-Agent transport type uaTransport struct { ua string rt http.RoundTripper } func (u *uaTransport) RoundTrip(req *http.Request) (*http.Response, error) { req2 := req.Clone(req.Context()) req2.Header.Set("User-Agent", u.ua) return u.rt.RoundTrip(req2) } // WithUserAgent wraps an existing transport with custom User-AgentCreated: Sun Apr 05 19:28:12 GMT 2026 - Last Modified: Fri Aug 08 17:51:53 GMT 2025 - 6.5K bytes - Click Count (0) -
Jenkinsfile
#!groovy pipeline { agent none // save some io during the build options { skipDefaultCheckout() durabilityHint('PERFORMANCE_OPTIMIZED') disableRestartFromStage() } stages { stage("Build / Test - JDK17") { agent { node { label 'ubuntu' } } steps { timeout(time: 210, unit: 'MINUTES') { checkout scm mavenBuild("jdk_17_latest", "") script {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Mon Jan 26 16:20:31 GMT 2026 - 2K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/helper/PathMappingHelper.java
logger.debug("replace: {} -> {}", url, newUrl); } return newUrl; } /** * Checks if the user agent matches the path mapping. * * @param pathMapping the path mapping * @return true if the user agent matches */ protected boolean matchUserAgent(final PathMapping pathMapping) { if (!pathMapping.hasUAMathcer()) { return true;
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Nov 28 16:29:12 GMT 2025 - 9.5K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/InterceptorTest.kt
assertThat(response.request.header("User-Agent")).isNotNull() assertThat(response.request.header("User-Agent")).isEqualTo("user request") assertThat(response.networkResponse!!.request.header("User-Agent")).isEqualTo( "intercepted request", ) } @Test fun applicationInterceptorThrowsRuntimeExceptionAsynchronous() { interceptorThrowsRuntimeExceptionAsynchronous(false)
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 16:11:23 GMT 2025 - 28.2K bytes - Click Count (0)