whatisnew
V2EX  ›  问与答

关于 restful api 的请求与返回

  •  
  •   whatisnew · Jun 4, 2015 · 2180 views
  •   You need to sign in to view this topic
    This topic created in 4175 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   ·   Privacy   ·   Solana   ·   1420 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 21ms · UTC 10:19 · PVG 18:19 · LAX 02:19 · JFK 05:19
    ♥ Do have faith in what you're doing.