Package jetbrains.buildServer.http
Interface HttpApi.Response
-
- All Superinterfaces:
AutoCloseable
- All Known Implementing Classes:
FakeHttpApi.NotFound,FakeHttpApi.SimpleResponse
- Enclosing interface:
- HttpApi
public static interface HttpApi.Response extends AutoCloseable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default voidclose()StringgetBody()default InputStreamgetBodyInputStream()default ReadergetBodyReader()StringgetHeader(String name)intgetStatusCode()StringgetStatusText()
-
-
-
Method Detail
-
getStatusCode
int getStatusCode()
-
getStatusText
@NotNull String getStatusText()
-
getBody
@NotNull String getBody()
-
getBodyInputStream
default InputStream getBodyInputStream() throws IOException
- Throws:
IOException
-
getBodyReader
default Reader getBodyReader() throws IOException
- Throws:
IOException
-
close
default void close()
- Specified by:
closein interfaceAutoCloseable
-
-