whatisnew
V2EX  ›  问与答

关于 restful api 的请求与返回

  •  
  •   whatisnew · Jun 4, 2015 · 1898 views
    This topic created in 4023 days ago, the information mentioned may be changed or developed.

    正常情况下一般是用 get post 来传递数据,最近看有在 header 头里边传递数据的,
    比如在 header 头里返回:

    X-Pagination-Total-Count: 100
    X-Pagination-Per-Page: 20
    

    这是一种什么样的设计理念?在 header 头里传递数据不是会让数据包更大,更慢吗?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1000 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:14 · PVG 06:14 · LAX 15:14 · JFK 18:14
    ♥ Do have faith in what you're doing.