Skip to content

How to read request body from inside a Deno application? #12601

Answered by Soremwar
goodmanworld asked this question in Q&A
Discussion options

You must be logged in to vote

You can access any request body by using const result = await ctx.request.body({ type: "json" }).value;

However the above will only work if the content type of the incoming request is application/json

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
3 replies
@goodmanworld
Comment options

@bartlomieju
Comment options

@goodmanworld
Comment options

Comment options

You must be logged in to vote
5 replies
@goodmanworld
Comment options

@Soremwar
Comment options

@goodmanworld
Comment options

@Soremwar
Comment options

@ghost
Comment options

Answer selected by goodmanworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants
Converted from issue

This discussion was converted from issue #12600 on October 30, 2021 08:46.