Skip to content

Instantly share code, notes, and snippets.

@hamnis
Created November 24, 2010 15:33
Show Gist options
  • Save hamnis/713821 to your computer and use it in GitHub Desktop.
Save hamnis/713821 to your computer and use it in GitHub Desktop.
private static Map<CaseInsensitiveKey, HTTPMethod> defaultMethods = ImmutableMap.<CaseInsensitiveKey, HTTPMethod>builder()
.put(new CaseInsensitiveKey(CONNECT.getMethod()), CONNECT)
.put(new CaseInsensitiveKey(DELETE.getMethod()), DELETE)
.put(new CaseInsensitiveKey(GET.getMethod()), GET)
.put(new CaseInsensitiveKey(HEAD.getMethod()), HEAD)
.put(new CaseInsensitiveKey(OPTIONS.getMethod()), OPTIONS)
.put(new CaseInsensitiveKey(PATCH.getMethod()), PATCH)
.put(new CaseInsensitiveKey(POST.getMethod()), POST)
.put(new CaseInsensitiveKey(PURGE.getMethod()), PURGE)
.put(new CaseInsensitiveKey(PUT.getMethod()), PUT)
.put(new CaseInsensitiveKey(TRACE.getMethod()), TRACE)
.build();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment