Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for RequestBuilder (0.1 sec)

  1. src/main/java/org/codelibs/fess/suggest/request/RequestBuilder.java

    import org.codelibs.fess.suggest.concurrent.Deferred;
    import org.opensearch.client.Client;
    
    public abstract class RequestBuilder<Req extends Request<Res>, Res extends Response> {
        protected Client client;
        protected Req request;
    
        public RequestBuilder(final Client client, final Req request) {
            this.client = client;
            this.request = request;
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/http/BridgeInterceptor.kt

            requestBuilder.header("Content-Length", contentLength.toString())
            requestBuilder.removeHeader("Transfer-Encoding")
          } else {
            requestBuilder.header("Transfer-Encoding", "chunked")
            requestBuilder.removeHeader("Content-Length")
          }
        }
    
        if (userRequest.header("Host") == null) {
          requestBuilder.header("Host", userRequest.url.toHostHeader())
        }
    
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http/RetryAndFollowUpInterceptor.kt

            requestBuilder.method("GET", null)
          } else {
            val requestBody = if (maintainBody) userResponse.request.body else null
            requestBuilder.method(method, requestBody)
          }
          if (!maintainBody) {
            requestBuilder.removeHeader("Transfer-Encoding")
            requestBuilder.removeHeader("Content-Length")
            requestBuilder.removeHeader("Content-Type")
          }
        }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/fess/suggest/request/popularwords/PopularWordsRequestBuilder.java

     * governing permissions and limitations under the License.
     */
    package org.codelibs.fess.suggest.request.popularwords;
    
    import org.codelibs.fess.suggest.request.RequestBuilder;
    import org.opensearch.client.Client;
    
    public class PopularWordsRequestBuilder extends RequestBuilder<PopularWordsRequest, PopularWordsResponse> {
        public PopularWordsRequestBuilder(final Client client) {
            super(client, new PopularWordsRequest());
        }
    
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/fess/suggest/request/suggest/SuggestRequestBuilder.java

    import org.codelibs.fess.suggest.converter.ReadingConverter;
    import org.codelibs.fess.suggest.normalizer.Normalizer;
    import org.codelibs.fess.suggest.request.RequestBuilder;
    import org.opensearch.client.Client;
    
    public class SuggestRequestBuilder extends RequestBuilder<SuggestRequest, SuggestResponse> {
        public SuggestRequestBuilder(final Client client, final ReadingConverter readingConverter, final Normalizer normalizer) {
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Thu Feb 22 01:36:54 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/fess/helper/IndexingHelper.java

                searchEngineClient.scrollSearch(fessConfig.getIndexDocumentUpdateIndex(), requestBuilder -> {
                    requestBuilder.setQuery(queryBuilder).setSize((int) numFound);
                    if (fields != null) {
                        requestBuilder.setFetchSource(fields, null);
                    }
                    return true;
                }, entity -> {
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Fri Oct 11 21:11:58 UTC 2024
    - 16.8K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/es/client/SearchEngineClient.java

            final GetRequestBuilder requestBuilder = client.prepareGet(index, id);
            if (condition.build(requestBuilder)) {
                response = requestBuilder.execute().actionGet(ComponentUtil.getFessConfig().getIndexSearchTimeout());
            }
            final long execTime = systemHelper.getCurrentTimeAsLong() - startTime;
    
            return searchResult.build(requestBuilder, execTime, OptionalEntity.ofNullable(response, () -> {}));
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Sun Oct 20 02:08:03 UTC 2024
    - 86.1K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/CallTest.kt

      }
    
      @Test
      fun invalidScheme() {
        val requestBuilder = Request.Builder()
        assertFailsWith<IllegalArgumentException> {
          requestBuilder.url("ftp://hostname/path")
        }.also { expected ->
          assertThat(expected.message).isEqualTo("Expected URL scheme 'http' or 'https' but was 'ftp'")
        }
      }
    
      @Test
      fun invalidPort() {
        val requestBuilder = Request.Builder()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Wed Apr 10 19:46:48 UTC 2024
    - 142.5K bytes
    - Viewed (0)
  9. okhttp/src/test/java/okhttp3/URLConnectionTest.kt

        server.enqueue(MockResponse(body = "Page 2"))
        val requestBuilder =
          Request.Builder()
            .url(server.url("/page1"))
        if (method == "POST") {
          requestBuilder.post("ABCD".toRequestBody(null))
        } else {
          requestBuilder.method(method, null)
        }
        val response = getResponse(requestBuilder.build())
        val responseString = readAscii(response.body.byteStream(), Int.MAX_VALUE)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Jan 20 10:30:28 UTC 2024
    - 131.7K bytes
    - Viewed (0)
  10. okhttp/src/test/java/okhttp3/KotlinSourceModernTest.kt

        Request(
          url = "".toHttpUrl(),
          headers = headersOf(),
          method = "",
          body = "".toRequestBody(null),
        )
      }
    
      @Test
      fun requestBuilder() {
        val requestBody = "".toRequestBody(null)
        var builder = Request.Builder()
        builder = builder.url("".toHttpUrl())
        builder = builder.url("")
        builder = builder.url(URL(""))
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Apr 01 14:21:25 UTC 2024
    - 46.5K bytes
    - Viewed (0)
Back to top