private void addResponseHeaders ( Record record , Response response ) throws StageException { if ( conf . headerOutputLocation == HeaderOutputLocation . NONE ) { return ; } Record . Header header = record . getHeader ( ) ; if ( conf . headerOutputLocation == HeaderOutputLocation . FIELD ) { writeResponseHeaderToField ( record , response ) ; } else if ( conf . headerOutputLocation == HeaderOutputLocation . HEADER ) { writeResponseHeaderToRecordHeader ( response , header ) ; } }
Populates HTTP response headers to the configured location