# Mapping requests and responses

**URL:** <https://www.ruby-forum.com/t/mapping-requests-and-responses/231898>\
**Category:** NGINX\
**Created:** [September 4, 2014, 8:12pm UTC](https://www.ruby-forum.com/t/mapping-requests-and-responses/231898 "2014-09-04T20:12:36Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [September 4, 2014, 8:12pm UTC](https://www.ruby-forum.com/t/mapping-requests-and-responses/231898/1 "2014-09-04T20:12:36Z")

</div>

I am currently using nginx as a reverse proxy. I want to be able to map  
a  
requests to its corresponding  
response. For example, I want to log some parts of a user request (say  
form  
field values in a POST request)  
along with the set-cookie that was set in the corresponding response  
header.

Would this be easy to create an add-on that performs this functionality.  
If  
yes, could you point me to any  
relevant modules that might help?

Posted at Nginx Forum:

> **[Mapping requests and responses](https://forum.nginx.org/read.php?2,253080,253080#msg-253080)**
>
> I am currently using nginx as a reverse proxy. I want to be able to map a requests to its corresponding response. For example, I want to log some parts of a user request (say form field values in a POST request) along with the set-cookie that was set...
