OpenSearch/docs/reference/modules
Jay Modi 7520a107be Optionally require a valid content type for all rest requests with content (#22691)
This change adds a strict mode for xcontent parsing on the rest layer. The strict mode will be off by default for 5.x and in a separate commit will be enabled by default for 6.0. The strict mode, which can be enabled by setting `http.content_type.required: true` in 5.x, will require that all incoming rest requests have a valid and supported content type header before the request is dispatched. In the non-strict mode, the Content-Type header will be inspected and if it is not present or not valid, we will continue with auto detection of content like we have done previously.

The content type header is parsed to the matching XContentType value with the only exception being for plain text requests. This value is then passed on with the content bytes so that we can reduce the number of places where we need to auto-detect the content type.

As part of this, many transport requests and builders were updated to provide methods that
accepted the XContentType along with the bytes and the methods that would rely on auto-detection have been deprecated.

In the non-strict mode, deprecation warnings are issued whenever a request with body doesn't provide the Content-Type header.

See #19388
2017-02-02 14:07:13 -05:00
..
cluster [DOCS] fixes word usage in allocation awareness docs 2016-11-25 11:47:40 -05:00
discovery Fix default port for unicast zen ping hosts 2017-01-11 17:10:56 -05:00
indices Updated document as per code change. (#22878) 2017-01-31 13:36:09 +01:00
scripting Expose multi-valued dates to scripts and document painless's date functions (#22875) 2017-02-01 21:57:07 -05:00
cluster.asciidoc Fix typo in cluster module docs 2016-07-12 16:32:23 -04:00
cross-cluster-search.asciidoc Docs: Made cross-cluster search experimental 2017-01-24 12:44:01 +01:00
discovery.asciidoc [DOCS] add azure and gce discovery plugins 2014-02-06 09:18:42 +01:00
gateway.asciidoc Update gateway.asciidoc (#19572) 2016-07-28 13:09:05 +02:00
http.asciidoc Optionally require a valid content type for all rest requests with content (#22691) 2017-02-02 14:07:13 -05:00
indices.asciidoc Fix doc build. 2016-06-22 09:34:49 +02:00
memcached.asciidoc Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
network.asciidoc Document using round-robin DNS for discovery (#21810) 2016-12-14 11:29:39 +01:00
node.asciidoc Fix typos (#21456) 2016-11-10 11:55:04 +01:00
plugins.asciidoc Docs: Prepare plugin and integration docs for 2.0 2015-08-15 18:02:43 +02:00
scripting.asciidoc Remove groovy scripting language (#21607) 2016-11-22 19:24:12 -08:00
snapshots.asciidoc [Docs] Correct setting name in snapshot/restore documentation (#22023) 2016-12-07 14:12:10 +01:00
threadpool.asciidoc percolator: remove deprecated percolate and mpercolate apis 2017-01-10 11:18:27 +01:00
thrift.asciidoc Fix organization rename in all files in project 2016-03-03 12:04:13 -07:00
transport.asciidoc Remove LocalTransport in favor of MockTcpTransport (#20695) 2016-10-07 11:27:47 +02:00
tribe.asciidoc Remove custom plugins path 2016-05-26 10:16:25 -04:00