Skip to content

Access the original request (it's not originalRequest..) #533

Closed
@Industrial

Description

Hi!

I want to serve an API with Oak that requires a Request and returns a Response. I need to wrap this in an Oak request.

I found that the types for Oak request/response's are also called Request and Response. This is confusing and might better be named OakRequest and OakResponse, but this is sematics.

I found the originalRequest field on the Request class of oak but this request is still not the basic Request passed by the Deno HTTP server. How do I access that request?

gr,

Tom

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions