# HTTP.jl. Can I get r::Request object before HTTP.request()

**URL:** <https://discourse.julialang.org/t/http-jl-can-i-get-r-request-object-before-http-request/96783>\
**Category:** General Usage\
**Tags:** http, httpjl\
**Created:** [March 29, 2023, 3:44pm UTC](https://discourse.julialang.org/t/http-jl-can-i-get-r-request-object-before-http-request/96783 "2023-03-29T15:44:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andrey2185](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrey2185/32/9889_2.png) [@andrey2185](https://discourse.julialang.org/u/andrey2185)\
**Post date:** [March 29, 2023, 3:44pm UTC](https://discourse.julialang.org/t/http-jl-can-i-get-r-request-object-before-http-request/96783/1 "2023-03-29T15:44:56Z")

</div>

Hello, can I get r::Request object before HTTP.request() ?

now only:

```julia
import HTTP
response = HTTP.request("GET", "https://docs.julialang.org/")
request = response.request

```

somewhere about:

```julia
import HTTP
request = ... ? 
response = HTTP.request("GET", "https://docs.julialang.org/")
request.response = response
response.request == request # => true

```

---

<div class="post-metadata">

**Author:** ![quinnj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/quinnj/32/11_2.png) [@quinnj](https://discourse.julialang.org/u/quinnj)\
**Post date:** [March 30, 2023, 8:10pm UTC](https://discourse.julialang.org/t/http-jl-can-i-get-r-request-object-before-http-request/96783/2 "2023-03-30T20:10:19Z")

</div>

We currently don’t really expose the `Request` object as part of the public API. I think there’s an open issue though about making it more official so you could construct, then make a request on your object explicitly.
