What is a request-response pair called? [duplicate]

ぃ、小莉子 提交于 2019-12-02 18:42:14

How about "exchange"?

  • 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.

RequestResponsePair sounds like it does exactly what it says. And that's invaluable, I find.

I'd use Message or Transaction

Interaction

Transceival or ServiceCall might work.

HttpRoundTrip - inspired by Jeff Atwood in this blog post

Fiddler calls it a Session.

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

In my particular case I consider calling it a Connection. When you send a HTTP request, you're basically establishing a connection with some endpoint.

At least one reason why I dislike it is that similar to Session, one can assume there is some activity at the moment happening, which may or may not be true.

Background: I need to log all interactions with third-party service.

P.S. IMHO, Exchange is the best among others. It sounds more abstract.

what about RequestResponseContext?

What about ServiceConversation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!