What is a request-response pair called? [duplicate

2019-03-10 12:59发布

This question already has an answer here:

For example in HTTP you send a request and receive a response; is there a noun that describes that request-response pair?

I'd thought of "dialog" or "conversation" however those imply multiple request-response pairs, whereas I'm looking for a word that indicates exactly one.

The reason for asking is that I need to name an object which encapsulates the details of both, and RequestResponse seems fairly lame.

标签: http naming
12条回答
看我几分像从前
2楼-- · 2019-03-10 13:35

OpenRasta used "communication" for the request/response couple.

查看更多
Melony?
3楼-- · 2019-03-10 13:38
  • RFC2616 calls it an Exchange.
  • Wireshark and HTTPNetworkSniffer call it a Request/Response.
  • Fiddler calls it a Session.
  • Charles calls it a Sequence.
  • HTTP Scoop calls it a Conversation.
  • Other vocabulary includes: Message, Transaction, Communication.

I would go for Exchange or RequestResponse.

I also went to name it Operation in my code as I would queue Operations, flush Operations, pause or resume Operations.

查看更多
劳资没心,怎么记你
4楼-- · 2019-03-10 13:45

I'd use Message or Transaction

查看更多
姐就是有狂的资本
5楼-- · 2019-03-10 13:48

Transceival or ServiceCall might work.

查看更多
乱世女痞
6楼-- · 2019-03-10 13:50

Interaction

查看更多
▲ chillily
7楼-- · 2019-03-10 13:51

How about "exchange"?

查看更多
登录 后发表回答