Package com.twitter.finagle.httpx

Examples of com.twitter.finagle.httpx.Response


public class HttpServerTest {
  private static void runServer() {
    Service<Request, Response> service =
      new Service<Request, Response>() {
        public Future<Response> apply(Request request) {
          Response response = Response.apply();
          // Respond right away.
          response.setContent(ChannelBuffers.wrappedBuffer("yo".getBytes()));

          Future<Response> future = Future.value(response);
          return future;
        }
      };
View Full Code Here

TOP

Related Classes of com.twitter.finagle.httpx.Response

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.