Package play.utils

Class HTTP

java.lang.Object
play.utils.HTTP

public class HTTP extends Object
  • Constructor Details

    • HTTP

      public HTTP()
  • Method Details

    • parseContentType

      public static HTTP.ContentTypeWithEncoding parseContentType(String contentType)
    • fixCaseForHttpHeader

      public static String fixCaseForHttpHeader(String headerName)
      Use this method to make sure you have the correct casing of a http header name. eg: fixes 'content-type' to 'Content-Type'
      Parameters:
      headerName - The given header name to check
      Returns:
      The correct header name