N
N
Nastya19202021-04-27 14:38:00
Java
Nastya1920, 2021-04-27 14:38:00

Is it possible to get headers from inputstream?

Is there some way to subtract headers from inputstream?
There is an existing implementation of the feature in the code, where a
ResponseEntity is returned with the necessary header and body.
But the e2e tests are written in such a way that we get the response through the input stream (it reads only the body with the help of bufferedReader)
The task is to get information from the header in the tests, that is, only the inputstream.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question