Skip to content

Commit

Permalink
Docs: Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...' (#33744
Browse files Browse the repository at this point in the history
)

Fixed a grammatical mistake: 'a HTTP ...' -> 'an HTTP ...'

Closes #33728
  • Loading branch information
OrBin authored and nik9000 committed Sep 17, 2018
1 parent 45425e6 commit e8798db
Show file tree
Hide file tree
Showing 18 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion docs/java-rest/low-level/configuration.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ include-tagged::{doc-tests}/RestClientDocumentation.java[rest-client-config-basi
--------------------------------------------------

Preemptive Authentication can be disabled, which means that every request will be sent without
authorization headers to see if it is accepted and, upon receiving a HTTP 401 response, it will
authorization headers to see if it is accepted and, upon receiving an HTTP 401 response, it will
resend the exact same request with the basic authentication header. If you wish to do this, then
you can do so by disabling it via the `HttpAsyncClientBuilder`:

Expand Down
2 changes: 1 addition & 1 deletion docs/plugins/plugin-script.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ must not be contained in the `plugins` directory for the node that you are
installing the plugin to or installation will fail.

HTTP::
To install a plugin from a HTTP URL:
To install a plugin from an HTTP URL:
+
[source,shell]
-----------------------------------
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/modules/http.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ simple message will be returned. Defaults to `true`

|`http.pipelining` |Enable or disable HTTP pipelining, defaults to `true`.

|`http.pipelining.max_events` |The maximum number of events to be queued up in memory before a HTTP connection is closed, defaults to `10000`.
|`http.pipelining.max_events` |The maximum number of events to be queued up in memory before an HTTP connection is closed, defaults to `10000`.

|`http.max_warning_header_count` |The maximum number of warning headers in
client HTTP responses, defaults to unbounded.
Expand Down
2 changes: 1 addition & 1 deletion docs/reference/settings/notification-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The maximum period of inactivity between two data packets, before the
request is aborted.

`xpack.http.max_response_size`::
Specifies the maximum size a HTTP response is allowed to have, defaults to
Specifies the maximum size an HTTP response is allowed to have, defaults to
`10mb`, the maximum configurable value is `50mb`.

[[ssl-notification-settings]]
Expand Down
4 changes: 2 additions & 2 deletions docs/reference/settings/security-settings.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The roles to associate with the anonymous user. Required.
When `true`, an HTTP 403 response is returned if the anonymous user
does not have the appropriate permissions for the requested action. The
user is not prompted to provide credentials to access the requested
resource. When set to `false`, a HTTP 401 is returned and the user
resource. When set to `false`, an HTTP 401 response is returned and the user
can provide credentials with the appropriate permissions to gain
access. Defaults to `true`.

Expand Down Expand Up @@ -1370,4 +1370,4 @@ List of IP addresses to allow for this profile.
`transport.profiles.$PROFILE.xpack.security.filter.deny`::
List of IP addresses to deny for this profile.

include::security-hash-settings.asciidoc[]
include::security-hash-settings.asciidoc[]
2 changes: 1 addition & 1 deletion docs/reference/setup/install/windows.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ name, node name and roles to be set, in addition to memory and network settings:
[[msi-installer-configuration]]
image::images/msi_installer/msi_installer_configuration.png[]

A list of common plugins that can be downloaded and installed as part of the installation, with the option to configure a HTTPS proxy through which to download these plugins.
A list of common plugins that can be downloaded and installed as part of the installation, with the option to configure an HTTPS proxy through which to download these plugins.

TIP: Ensure the installation machine has access to the internet and that any corporate firewalls in place are configured to allow downloads from `artifacts.elastic.co`:

Expand Down
4 changes: 2 additions & 2 deletions docs/ruby/client.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ client.search index: 'my-index', body: { query: { match: { title: 'test' } } }
The `elasticsearch` gem combines two separate Rubygems:

* https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-transport[`elasticsearch-transport`]
provides a HTTP Ruby client for connecting to the Elasticsearch cluster,
provides an HTTP Ruby client for connecting to the Elasticsearch cluster,

* https://github.com/elastic/elasticsearch-ruby/tree/master/elasticsearch-api[`elasticsearch-api`]
provides a Ruby API for the Elasticsearch RESTful API.
Expand All @@ -94,7 +94,7 @@ Please see their respective documentation for configuration options and technica
Notably, the documentation and comprehensive examples for all the API methods is contained in the source,
and available online at http://rubydoc.info/gems/elasticsearch-api/Elasticsearch/API/Actions[Rubydoc].

Keep in mind, that for optimal performance, you should use a HTTP library which supports
Keep in mind, that for optimal performance, you should use an HTTP library which supports
persistent ("keep-alive") HTTP connections.


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
import static org.hamcrest.Matchers.is;

/**
* This test checks, if a HTTP look-alike request (starting with a HTTP method and a space)
* This test checks, if an HTTP look-alike request (starting with an HTTP method and a space)
* actually returns text response instead of just dropping the connection
*/
public class Netty4SizeHeaderFrameDecoderTests extends ESTestCase {
Expand Down Expand Up @@ -91,7 +91,7 @@ public void testThatTextMessageIsReturnedOnHTTPLikeRequest() throws Exception {
socket.getOutputStream().flush();

try (BufferedReader reader = new BufferedReader(new InputStreamReader(socket.getInputStream(), StandardCharsets.UTF_8))) {
assertThat(reader.readLine(), is("This is not a HTTP port"));
assertThat(reader.readLine(), is("This is not an HTTP port"));
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
import static org.hamcrest.Matchers.is;

/**
* Tests that when disabling detailed errors, a request with the error_trace parameter returns a HTTP 400
* Tests that when disabling detailed errors, a request with the error_trace parameter returns an HTTP 400 response.
*/
@ClusterScope(scope = Scope.TEST, supportsDedicatedMasters = false, numDataNodes = 1)
public class DetailedErrorsDisabledIT extends HttpSmokeTestCase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/**
* Monitors the Elasticsearch process and the system on which it is running so that metrics can be exposed via a HTTP or transport APIs to
* Monitors the Elasticsearch process and the system on which it is running so that metrics can be exposed via an HTTP or transport APIs to
* be logged and graphed.
*/
package org.elasticsearch.monitor;
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ public interface RequestHandler {
}

/**
* Represents a HTTP Response.
* Represents an HTTP Response.
*/
protected static class Response {

Expand Down Expand Up @@ -203,7 +203,7 @@ public String toString() {
}

/**
* Represents a HTTP Request.
* Represents an HTTP Request.
*/
protected static class Request {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ public void initClient() throws IOException {
}

/**
* Construct a HttpHost from the given host and port
* Construct an HttpHost from the given host and port
*/
protected HttpHost buildHttpHost(String host, int port) {
return new HttpHost(host, port, getProtocol());
Expand Down
4 changes: 2 additions & 2 deletions x-pack/docs/en/rest-api/watcher/execute-watch.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ This API supports the following fields:

| `ignore_condition` | no | false | When set to `true`, the watch execution uses the
{xpack-ref}/condition-always.html[Always Condition].
This can also be specified as a HTTP parameter.
This can also be specified as an HTTP parameter.

| `alternative_input` | no | null | When present, the watch uses this object as a payload
instead of executing its own input.
Expand All @@ -70,7 +70,7 @@ This API supports the following fields:
execution result is persisted to the `.watcher-history`
index for the current time. In addition, the status of the
watch is updated, possibly throttling subsequent executions.
This can also be specified as a HTTP parameter.
This can also be specified as an HTTP parameter.

| `watch` | no | null | When present, this
{xpack-ref}/how-watcher-works.html#watch-definition[watch] is used
Expand Down
2 changes: 1 addition & 1 deletion x-pack/docs/en/watcher/customizing-watches.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ See <<input-search>> for more details.
[[loading-http-data]]
==== Loading a Payload from a remote HTTP Service with HTTP Input

Use the `http` input to issue a HTTP request and load the returned response as
Use the `http` input to issue an HTTP request and load the returned response as
the watch initial payload. This input expects the response body content type
to either be JSON or YAML.

Expand Down
4 changes: 2 additions & 2 deletions x-pack/docs/en/watcher/encrypting-data.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ information or details about your SMTP email service. You can encrypt this
data by generating a key and adding some secure settings on each node in your
cluster.

Every `password` field that is used in your watch within a HTTP basic
authentication block - for example within a webhook, a HTTP input or when using
Every `password` field that is used in your watch within an HTTP basic
authentication block - for example within a webhook, an HTTP input or when using
the reporting email attachment - will not be stored as plain text anymore. Also
be aware, that there is no way to configure your own fields in a watch to be
encrypted.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ static void setProxy(RequestConfig.Builder config, HttpRequest request, HttpProx
}

/**
* Creates a HTTP proxy from the system wide settings
* Creates an HTTP proxy from the system wide settings
*
* @return A http proxy instance, if no settings are configured this will be a HttpProxy.NO_PROXY instance
* @return An HTTP proxy instance, if no settings are configured this will be an HttpProxy.NO_PROXY instance
*/
private HttpProxy getProxyFromSettings() {
String proxyHost = HttpSettings.PROXY_HOST.get(settings);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ public void testThatHttpClientFailsOnNonHttpResponse() throws Exception {
try (Socket socket = serverSocket.accept()) {
BufferedReader in = new BufferedReader(new InputStreamReader(socket.getInputStream(), StandardCharsets.UTF_8));
in.readLine();
socket.getOutputStream().write("This is not a HTTP response".getBytes(StandardCharsets.UTF_8));
socket.getOutputStream().write("This is not an HTTP response".getBytes(StandardCharsets.UTF_8));
socket.getOutputStream().flush();
} catch (Exception e) {
hasExceptionHappened.set(e);
Expand Down
2 changes: 1 addition & 1 deletion x-pack/qa/third-party/jira/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def jiraIssues(projectKey) {
return response.issues.findAll {it.key.startsWith(projectKey)}.collect {it.key}
}

/** Execute a HTTP request against the Jira server instance **/
/** Execute an HTTP request against the Jira server instance **/
def jiraHttpRequest(String endpoint, String method, int successCode) {
HttpsURLConnection connection = null;
try {
Expand Down

0 comments on commit e8798db

Please sign in to comment.