Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 39 for UA (0.03 sec)

  1. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers_test.go

    	req.Header = http.Header{}
    
    	ua := "short-agent"
    	req.Header.Set("User-Agent", ua)
    	uaNotTruncated := &lazyTruncatedUserAgent{req}
    	assert.Equal(t, ua, fmt.Sprintf("%v", uaNotTruncated))
    
    	ua = ""
    	for i := 0; i < maxUserAgentLength*2; i++ {
    		ua = ua + "a"
    	}
    	req.Header.Set("User-Agent", ua)
    	uaTruncated := &lazyTruncatedUserAgent{req}
    	assert.NotEqual(t, ua, fmt.Sprintf("%v", uaTruncated))
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/endpoints/handlers/helpers.go

    type lazyTruncatedUserAgent struct {
    	req *http.Request
    }
    
    func (lazy *lazyTruncatedUserAgent) String() string {
    	ua := "unknown"
    	if lazy.req != nil {
    		ua = utilnet.GetHTTPClient(lazy.req)
    		if len(ua) > maxUserAgentLength {
    			ua = ua[:maxUserAgentLength] + userAgentTruncateSuffix
    		}
    	}
    	return ua
    }
    
    // LazyClientIP implements String() string and it will
    // calls GetClientIP() lazily only when required.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Sep 03 15:25:35 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/audit/request_test.go

    func TestMaybeTruncateUserAgent(t *testing.T) {
    	req := &http.Request{}
    	req.Header = http.Header{}
    
    	ua := "short-agent"
    	req.Header.Set("User-Agent", ua)
    	assert.Equal(t, ua, maybeTruncateUserAgent(req))
    
    	ua = ""
    	for i := 0; i < maxUserAgentLength*2; i++ {
    		ua = ua + "a"
    	}
    	req.Header.Set("User-Agent", ua)
    	assert.NotEqual(t, ua, maybeTruncateUserAgent(req))
    }
    
    func TestCopyWithoutManagedFields(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 29 00:03:53 UTC 2022
    - 6.2K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/entity/RobotsTxt.java

                if (entry.getKey().matcher(target).find()) {
                    final Directive directive = entry.getValue();
                    final String ua = directive.getUserAgent();
                    int uaLength = 0;
                    if (!ALL_BOTS.equals(ua)) {
                        uaLength = ua.length();
                    }
                    if (uaLength > maxUaLength) {
                        matchedDirective = directive;
    Registered: Wed Jun 12 15:17:51 UTC 2024
    - Last Modified: Thu Feb 22 01:36:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/audit/request.go

    	}, nil
    }
    
    // truncate User-Agent if too long, otherwise return it directly.
    func maybeTruncateUserAgent(req *http.Request) string {
    	ua := req.UserAgent()
    	if len(ua) > maxUserAgentLength {
    		ua = ua[:maxUserAgentLength] + userAgentTruncateSuffix
    	}
    
    	return ua
    }
    
    // copyWithoutManagedFields will make a deep copy of the specified object and
    // will discard the managed fields from the copy.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jul 03 16:16:51 UTC 2023
    - 9K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/net/HttpHeadersTest.java

            ImmutableBiMap.<String, String>builder()
                .put("CDN_LOOP", "CDN-Loop")
                .put("ETAG", "ETag")
                .put("SOURCE_MAP", "SourceMap")
                .put("SEC_CH_UA_WOW64", "Sec-CH-UA-WoW64")
                .put("SEC_WEBSOCKET_ACCEPT", "Sec-WebSocket-Accept")
                .put("SEC_WEBSOCKET_EXTENSIONS", "Sec-WebSocket-Extensions")
                .put("SEC_WEBSOCKET_KEY", "Sec-WebSocket-Key")
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 22 21:08:08 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. src/main/webapp/WEB-INF/view/common/admin/head.jsp

    <%@page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8"%>
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link href="${fe:url('/css/admin/bootstrap.min.css')}" rel="stylesheet" type="text/css" />
    <link href="${fe:url('/css/admin/font-awesome.min.css')}" rel="stylesheet" type="text/css" />
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Wed Feb 12 12:21:50 UTC 2020
    - 984 bytes
    - Viewed (0)
  8. src/main/webapp/WEB-INF/orig/view/error/notFound.jsp

    <html>
    <head profile="http://a9.com/-/spec/opensearch/1.1/">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><la:message key="labels.system_error_title" /></title>
    <link href="${fe:url('/css/bootstrap.min.css')}" rel="stylesheet"
    	type="text/css" />
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/error/badRequest.jsp

    <% try{ %>
    <html>
    <head profile="http://a9.com/-/spec/opensearch/1.1/">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><la:message key="labels.system_error_title" /></title>
    <link href="${fe:url('/css/bootstrap.min.css')}" rel="stylesheet"
    	type="text/css" />
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/main/webapp/WEB-INF/orig/view/help.jsp

    <html>
    <head profile="http://a9.com/-/spec/opensearch/1.1/">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title><la:message key="labels.search_title" /></title>
    <link href="${fe:url('/css/bootstrap.min.css')}" rel="stylesheet"
    	type="text/css" />
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Fri Feb 17 12:13:41 UTC 2023
    - 1.4K bytes
    - Viewed (0)
Back to top