V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
whatisnew
V2EX  ›  问与答

关于 restful api 的请求与返回

  •  
  •   whatisnew · Jun 4, 2015 · 1830 views
    This topic created in 3983 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   ·   5086 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 45ms · UTC 08:18 · PVG 16:18 · LAX 01:18 · JFK 04:18
    ♥ Do have faith in what you're doing.