忽略 HTTPS 的伺服器端檢查
restClient.ignoreSSLIssues()
回覆的 status code > 399 時,不要拋出 exception REST
Client restClient = new RESTClient() restClient.handler.failure = restClient.handler.success
Software entities (class, modules, functions, etc.) should be open for extension, but closed for modification. Junior programmers create simple solutions to simple problems. Senior programmers create complex solutions to complex problems. Great programmers find simple solutions to complex problems. 註1:本部落格的範例程式碼在 2015 年以前的文章中,大多是以全型空白做縮排。如需服用,請自行用文字編輯器的取代功能把全型空白取代成半型空白。
- Bertrand Meyer
- Charles Connell
註2:本部落格的內容授權請參閱部落格底部的授權宣告。
沒有留言:
張貼留言