# NOT RUN {
# the default is set to 127.0.0.1 (i.e., localhost) and port 9200
connect()
# set a different host
# connect(es_host = '162.243.152.53')
# => http://162.243.152.53:9200
# set a different port
# connect(es_port = 8000)
# => http://localhost:8000
# set a different context path
# connect(es_path = 'foo_bar')
# => http://localhost:9200/foo_bar
# set to https
# connect(es_transport_schema = 'https')
# => https://localhost:9200
# See connection details
connection()
# set headers
connect(headers = list(a = 5))
## or
connect(headers = add_headers(list(a = 5)))
# }
Run the code above in your browser using DataLab