Package play.utils
Class HTTP
- java.lang.Object
-
- play.utils.HTTP
-
public class HTTP extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHTTP.ContentTypeWithEncoding
-
Constructor Summary
Constructors Constructor Description HTTP()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.StringfixCaseForHttpHeader(java.lang.String headerName)Use this method to make sure you have the correct casing of a http header name.static HTTP.ContentTypeWithEncodingparseContentType(java.lang.String contentType)
-
-
-
Method Detail
-
parseContentType
public static HTTP.ContentTypeWithEncoding parseContentType(java.lang.String contentType)
-
fixCaseForHttpHeader
public static java.lang.String fixCaseForHttpHeader(java.lang.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
-
-