Skip to content

How to return plain text from function? #1994

Answered by wolfgangwalther
maxbaluev asked this question in Q&A
Discussion options

You must be logged in to vote

Have a look at the fine docs here: https://postgrest.org/en/v8.0/api.html#plain-text-output

You need to make the request with Accept: text/plain. This should then take care of the Content-Type header automatically, if I remember correctly, no need to manually set that.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by wolfgangwalther
Comment options

You must be logged in to vote
4 replies
@wolfgangwalther
Comment options

@maxbaluev
Comment options

@wolfgangwalther
Comment options

@steve-chavez
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
3 participants
Converted from issue

This discussion was converted from issue #1993 on October 27, 2021 13:09.