com.github.dreamhead.moco.HttpServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moco-core Show documentation
Show all versions of moco-core Show documentation
Moco is an easy setup stub framework, mainly focusing on testing and integration.
package com.github.dreamhead.moco;
import com.github.dreamhead.moco.handler.failover.Failover;
import com.github.dreamhead.moco.handler.proxy.ProxyConfig;
import com.github.dreamhead.moco.mount.MountPredicate;
import com.github.dreamhead.moco.mount.MountTo;
public interface HttpServer extends HttpResponseSetting, Server {
HttpResponseSetting get(final RequestMatcher matcher);
HttpResponseSetting post(final RequestMatcher matcher);
HttpResponseSetting put(final RequestMatcher matcher);
HttpResponseSetting delete(final RequestMatcher matcher);
HttpResponseSetting mount(final String dir, final MountTo target, final MountPredicate... predicates);
HttpResponseSetting proxy(final ProxyConfig config);
HttpResponseSetting proxy(final ProxyConfig proxyConfig, final Failover failover);
}