whatisnew
V2EX  ›  问与答

关于 restful api 的请求与返回

  •  
  •   whatisnew · Jun 4, 2015 · 1908 views
    This topic created in 4028 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   ·   2547 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 37ms · UTC 15:42 · PVG 23:42 · LAX 08:42 · JFK 11:42
    ♥ Do have faith in what you're doing.