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 void
close()
String
getBody()
default InputStream
getBodyInputStream()
default Reader
getBodyReader()
String
getHeader(String name)
int
getStatusCode()
String
getStatusText()
-
-
-
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:
close
in interfaceAutoCloseable
-
-