Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for encodePath (0.22 sec)

  1. src/main/java/org/codelibs/fess/dict/DictionaryCreator.java

            if (!isTarget(path)) {
                return null;
            }
    
            return newDictionaryFile(encodePath(path), path, timestamp);
        }
    
        protected String encodePath(final String path) {
            return Base64.getUrlEncoder().encodeToString(path.getBytes(Constants.CHARSET_UTF_8));
        }
    
        protected boolean isTarget(final String path) {
    Java
    - Registered: Mon May 06 08:04:11 GMT 2024
    - Last Modified: Thu Feb 22 01:37:57 GMT 2024
    - 1.8K bytes
    - Viewed (0)
  2. okhttp-sse/src/test/java/okhttp3/sse/internal/EventSourceHttpTest.kt

              |
              |
              """.trimMargin(),
            ).setHeader("content-type", "text/event-stream")
            .build(),
        )
        val source = newEventSource()
        assertThat(source.request().url.encodedPath).isEqualTo("/")
        listener.assertOpen()
        listener.assertEvent(null, null, "hey")
        listener.assertClose()
      }
    
      @RetryingTest(5)
      fun cancelInEventShortCircuits() {
        server.enqueue(
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Jan 14 10:20:09 GMT 2024
    - 6.6K bytes
    - Viewed (0)
  3. cmd/erasure-coding.go

    				// Error conditions should be checked above.
    				panic(err)
    			}
    			enc = e
    		})
    		return enc
    	}
    	return
    }
    
    // EncodeData encodes the given data and returns the erasure-coded data.
    // It returns an error if the erasure coding failed.
    func (e *Erasure) EncodeData(ctx context.Context, data []byte) ([][]byte, error) {
    	if len(data) == 0 {
    		return make([][]byte, e.dataBlocks+e.parityBlocks), nil
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  4. cmd/erasure_test.go

    		erasure, err := NewErasure(context.Background(), test.dataBlocks, test.parityBlocks, blockSizeV2)
    		if err != nil {
    			t.Fatalf("Test %d: failed to create erasure: %v", i, err)
    		}
    		encoded, err := erasure.EncodeData(context.Background(), buffer)
    		if err != nil {
    			t.Fatalf("Test %d: failed to encode data: %v", i, err)
    		}
    
    		for j := range encoded[:test.missingData] {
    			encoded[j] = nil
    		}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Mon Jul 25 19:37:26 GMT 2022
    - 4.8K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http/RequestLine.kt

       * Returns the path to request, like the '/' in 'GET / HTTP/1.1'. Never empty, even if the request
       * URL is. Includes the query component if it exists.
       */
      fun requestPath(url: HttpUrl): String {
        val path = url.encodedPath
        val query = url.encodedQuery
        return if (query != null) "$path?$query" else path
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2K bytes
    - Viewed (0)
  6. cmd/erasure-encode.go

    		if n == 0 && total != 0 {
    			// Reached EOF, nothing more to be done.
    			break
    		}
    
    		// We take care of the situation where if n == 0 and total == 0 by creating empty data and parity files.
    		blocks, err = e.EncodeData(ctx, buf[:n])
    		if err != nil {
    			return 0, err
    		}
    
    		if err = writer.Write(ctx, blocks); err != nil {
    			return 0, err
    		}
    
    		total += int64(n)
    		if eof {
    			break
    		}
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 02:11:45 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/WebPlatformUrlTest.kt

          }
        assertThat(url.scheme, "scheme").isEqualTo(testData.scheme)
        assertThat(effectiveHost, "host").isEqualTo(testData.host)
        assertThat(effectivePort, "port").isEqualTo(testData.port)
        assertThat(url.encodedPath, "path").isEqualTo(testData.path)
        assertThat(effectiveQuery, "query").isEqualTo(testData.query)
        assertThat(effectiveFragment, "fragment").isEqualTo(testData.fragment)
      }
    
      companion object {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 4.7K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallKotlinTest.kt

          ),
        )
        server.enqueue(MockResponse())
    
        val request = Request(server.url("/"))
        val call = client.newCall(request)
        val response = call.execute()
    
        assertThat(response.request.url.encodedPath).isEqualTo("/b")
        assertThat(response.request.headers).isEqualTo(headersOf())
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Jan 20 10:30:28 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top