- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 12 for HttpExchange (0.24 sec)
-
platforms/software/version-control/src/testFixtures/groovy/org/gradle/vcs/fixtures/GitHttpRepository.java
server.expect(server.post(backingRepo.getName() + "/git-upload-pack", new ErroringAction<HttpExchange>() { @Override protected void doExecute(HttpExchange httpExchange) throws Exception { httpExchange.getResponseHeaders().add("content-type", "application/x-git-upload-pack-result"); httpExchange.sendResponseHeaders(200, 0); ProcessBuilder builder = new ProcessBuilder();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Oct 11 12:16:09 UTC 2023 - 5.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ChainingHttpHandler.java
} } private RequestOutcome requestStarted(HttpExchange httpExchange) { lock.lock(); RequestOutcome outcome; try { outcome = new RequestOutcome(lock, httpExchange.getRequestMethod(), httpExchange.getRequestURI().getPath()); outcomes.add(outcome); } finally { lock.unlock(); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 10.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMethodAndRunAction.java
import com.sun.net.httpserver.HttpExchange; import org.gradle.api.Action; class ExpectMethodAndRunAction implements ResourceHandler, BlockingHttpServer.ExpectedRequest, ResourceExpectation { private final String method; private final String path; private final Action<? super HttpExchange> action; ExpectMethodAndRunAction(String method, String path, Action<? super HttpExchange> action) { this.method = method;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResponseProducer.java
package org.gradle.test.fixtures.server.http; import com.sun.net.httpserver.HttpExchange; import java.io.IOException; interface ResponseProducer { default boolean isFailure() { return false; } /** * Called to handle a request. Is *not* called under lock. */ void writeTo(int requestId, HttpExchange exchange) throws IOException; /** * Returns the failure, if any.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.1K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectInAnyOrder.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.server.http; import com.sun.net.httpserver.HttpExchange; import javax.annotation.Nullable; import java.util.ArrayList; import java.util.Collection; import java.util.List; import java.util.concurrent.locks.Lock;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 3.4K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ExpectMethod.java
* limitations under the License. */ package org.gradle.test.fixtures.server.http; import com.google.common.base.Charsets; import com.google.common.io.Files; import com.sun.net.httpserver.HttpExchange; import org.gradle.test.fixtures.server.http.BlockingHttpServer.BlockingRequest; import org.gradle.test.fixtures.server.http.BlockingHttpServer.BuildableExpectedRequest; import org.hamcrest.Matcher;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 6.6K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/AbstractFailure.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.server.http; import com.sun.net.httpserver.HttpExchange; abstract class AbstractFailure implements ResponseProducer, Failure { private final RuntimeException failure; public AbstractFailure(RuntimeException failure) { this.failure = failure; }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.5K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/TrackingHttpHandler.java
* * @return null when this handler is not expecting any further requests. */ @Nullable ResponseProducer selectResponseProducer(int id, HttpExchange exchange); boolean expecting(HttpExchange exchange); /** * Returns a precondition that asserts that this handler is not expecting any further requests to be released by the test in order to complete. */
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 1.9K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/BlockingHttpServer.java
} }; RuntimeException getFailure(); } private static class SendEmptyResponse extends ErroringAction<HttpExchange> { @Override protected void doExecute(HttpExchange httpExchange) throws Exception { httpExchange.sendResponseHeaders(200, 0); } } private class MustBeRunning implements WaitPrecondition { @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 21.7K bytes - Viewed (0) -
testing/internal-integ-testing/src/main/groovy/org/gradle/test/fixtures/server/http/ResourceHandlerWrapper.java
* See the License for the specific language governing permissions and * limitations under the License. */ package org.gradle.test.fixtures.server.http; import com.sun.net.httpserver.HttpExchange; import java.io.IOException; import java.util.concurrent.locks.Lock; class ResourceHandlerWrapper implements ResourceHandler, WaitPrecondition { private final Lock lock;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 04 07:21:38 UTC 2024 - 2.7K bytes - Viewed (0)