Package 

Class HeaderUtil


  • 
    public class HeaderUtil
    
                        

    The class purpose is to weaken too strict OkHttp restriction on http headers. See: https://github.com/square/okhttp/issues/2016 Auth headers might have an Authentication information. It is better to get 401 from the server in this case, rather than non descriptive error as 401 could be handled to invalidate the wrong token in the client code.

    • Method Summary

      Modifier and Type Method Description
      static String stripHeaderName(String name)
      static String stripHeaderValue(String value)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait