Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我希望根据他们的代码点从低到高排列我的标题。以下是我的尝试,我想知道是否有人可以就我是否正确地完成此操作提供建议。我基本上查阅了 ASCII 图表(ASCII 图表)来手动执行此操作。
Action -> X-Amz-Algorithm -> X-Amz-Credential -> X-Amz-Date -> X-Amz-SignedHeaders - > X-Amz-Signature
您需要对标题进行排序。根据编程语言的不同,这看起来会有所不同,但关键字始终是“排序”。
Java 示例:
List<String> headers = Arrays.asList("Action", "X-Amz-Algorithm", "..."); headers.sort(Comparator.naturalOrder());