@Test public void testGuavaOptional() { assertTrue(getBody(POST("/foo", "{}")).isPresent()); assertFalse(getBody(GET("/foo")).isPresent()); }
public static Request GET(String path) { return Requests.GET(path); }
Request { public static Request GET(String path) { return Requests.GET(path); } }
Request { public static Request GET(String path) { return Requests.GET(path); }  }
Request { public static Request GET(String path) { return Requests.GET(path); }  static Request GET(String path); static Request PUT(String path, String body); static Request lazy(F0<Request> requestExpression); abstract X match(Cases<X> cases); @Override abstract int hashCode(); @Override abstract boolean equals(Object obj); @Override abstract String toString(); final String path(); final Option<String> body(); final Request withPath(String newPath); final Request withBody(String newBody); }
Request { public static Request GET(String path) { return Requests.GET(path); }  static Request GET(String path); static Request PUT(String path, String body); static Request lazy(F0<Request> requestExpression); abstract X match(Cases<X> cases); @Override abstract int hashCode(); @Override abstract boolean equals(Object obj); @Override abstract String toString(); final String path(); final Option<String> body(); final Request withPath(String newPath); final Request withBody(String newBody); static final Lens<Request, String> _path; static final Lens<Request, String> _pathPatternMatch; }