Package | Description |
---|---|
com.google.api.client.testing.http.javanet |
Modifier and Type | Method | Description |
---|---|---|
MockHttpURLConnection |
MockHttpURLConnection.addHeader(String name,
String value) |
Sets a custom response header.
|
MockHttpURLConnection |
MockHttpURLConnection.setErrorStream(InputStream is) |
Sets the error stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setInputStream(InputStream is) |
Sets the input stream.
|
MockHttpURLConnection |
MockHttpURLConnection.setOutputStream(OutputStream 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.
|
Copyright © 2011–2019 Google. All rights reserved.