All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.dreamhead.moco.HttpServer Maven / Gradle / Ivy

Go to download

Moco is an easy setup stub framework, mainly focusing on testing and integration.

There is a newer version: 1.5.0
Show newest version
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);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy