# Getting Http Handler within Discover Docview Tab

**URL:** <https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217>\
**Category:** Kibana\
**Created:** [October 7, 2020, 6:21am UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217 "2020-10-07T06:21:08Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WhiskeyTF](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@WhiskeyTF](https://discuss.elastic.co/u/WhiskeyTF)\
**Post date:** [October 7, 2020, 6:21am UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217/1 "2020-10-07T06:21:08Z")

</div>

I am currently creating a plugin that creates a new Discover Doc View tab to add a commenting system for users. I am having trouble figuring out how to get access to http value from CoreStart passed in by core.getstartservices during applications setup so that i can use it within my docview entry. If there is another way to do it via an api call that would be great as well.

kibana version 7.9

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [October 7, 2020, 9:01am UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217/2 "2020-10-07T09:01:47Z")

</div>

Hi

`useKibana` like it is used in the following code should give you access to the services you need

> <https://github.com/elastic/kibana/blob/9450248ebede86b0cb515bbd1a96046268f4a332/src/plugins/index_pattern_management/public/components/edit_index_pattern/create_edit_field/create_edit_field.tsx#L25-L50>

  
Best,Matthias

---

<div class="post-metadata">

**Author:** ![WhiskeyTF](https://avatars.discourse-cdn.com/v4/letter/w/7c8e57/32.png) [@WhiskeyTF](https://discuss.elastic.co/u/WhiskeyTF)\
**Post date:** [October 7, 2020, 10:17am UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217/3 "2020-10-07T10:17:43Z")

</div>

Hey Matthias ,

thanks for helping out. when I try this the result from useKibana seems to come back as just a prototype with no actual data in it here is a sample exert of how i attempted to implement your suggestion. i may be missing something in interpreting the example you showed

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/5/e/5e2b19e5bd224eb1d8c798ca694a4972c5f27d75.png)

Here is the result I get in console as well

 ![image](https://us1.discourse-cdn.com/elastic/original/3X/f/3/f33bc03afdcff4354009e76c4745b50d189e22ac.png)

Thanks, Whiskey

---

<div class="post-metadata">

**Author:** ![matw](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/matw/32/13913_2.png) [@matw](https://discuss.elastic.co/u/matw)\
**Post date:** [October 12, 2020, 4:24pm UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217/4 "2020-10-12T16:24:21Z")

</div>

Hi  
Yes, you're right, doesn't work this way. you need to create you're own Kibana Context in the plugin you're creating, mind if you could share more code of your plugin?

thx & best,  
Matthias

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 9, 2020, 4:24pm UTC](https://discuss.elastic.co/t/getting-http-handler-within-discover-docview-tab/251217/5 "2020-11-09T16:24:26Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
