| Package | Description |
|---|---|
| com.google.api.client.testing.http.javanet |
| Modifier and Type | Method and Description |
|---|---|
MockHttpURLConnection |
MockHttpURLConnection.addHeader(String
Sets a custom response header.
|
MockHttpURLConnection |
MockHttpURLConnection.setErrorStream(InputStream
Sets the error stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setInputStream(InputStream
Sets the input stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setOutputStream(OutputStream
Sets the output stream or
null to throw an
UnknownServiceException when
getOutputStream() is called.
|
MockHttpURLConnection |
MockHttpURLConnection.setResponseCode(int responseCode)
Sets the HTTP response status code.
|