Skip to content

Instantly share code, notes, and snippets.

@helpermethod
Last active June 28, 2017 13:47
Show Gist options
  • Save helpermethod/60bb1f1cd38fc804fbc65e0d1cd226c2 to your computer and use it in GitHub Desktop.
Save helpermethod/60bb1f1cd38fc804fbc65e0d1cd226c2 to your computer and use it in GitHub Desktop.
Membrane Java 8 DSL

The Exchange DSL

Design considerations

General

For getting the raw, low-level representation.

Exchange|Request|Response get()

Exchange

Request request()
Response response()
Destinations destinations()
Properties properties()

Request

HttpMethod httpMethod()
URI uri()
QueryParams queryParams()
Headers headers()
Cookies cookies()

Response

Headers headers()
Status status()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment