Skip to content
Discussion options

You must be logged in to vote

While I understand the request. It seems there is a misunderstanding about when streaming starts and how that relates to the status code and your code. This proposal can't work because of limitations with streaming, specifically you can't set the status code after the headers have been sent and the stream has started.

At the point where the Profile component in the example runs the headers have already been sent and the stream has been started. This means that you can't change the status code / headers at that point. What we do for notFound() / redirect() when they are called when the stream has started is adding meta tags recommended by Google for these cases.

TLDR: because of streaming …

Replies: 38 comments 53 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
17 replies
@Libron
Comment options

@switz
Comment options

@Israeltheminer
Comment options

@maslowivan
Comment options

@c0b41
Comment options

Answer selected by leerob
Comment options

You must be logged in to vote
1 reply
@mthmcalixto
Comment options

Comment options

You must be logged in to vote
2 replies
@ludwighogstrom
Comment options

@JurajKavka
Comment options

Comment options

You must be logged in to vote
9 replies
@JurajKavka
Comment options

@gnoff
Comment options

gnoff Nov 6, 2023
Maintainer

@JurajKavka
Comment options

@traviswimer
Comment options

@JurajKavka
Comment options

Comment options

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

@v1adko
Comment options

@cnunciato
Comment options

@maslowivan
Comment options

This comment was marked as spam.

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@ddehen
Comment options

@suleymangezsat
Comment options

Comment options

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

@devjiwonchoi
Comment options

devjiwonchoi Sep 21, 2023
Maintainer Author

@traviswimer
Comment options

Comment options

You must be logged in to vote
1 reply
@dpnolte
Comment options

Comment options

You must be logged in to vote
1 reply
@v1adko
Comment options

Comment options

You must be logged in to vote
2 replies
@vks-brussell
Comment options

@v1adko
Comment options

Comment options

You must be logged in to vote
1 reply
@astateful
Comment options

Comment options

You must be logged in to vote
2 replies
@masadamsahid
Comment options

@felipedeboni
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@yanghoxom
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet