Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTPBody writer and readers #106

Merged
merged 2 commits into from
May 17, 2023
Merged

HTTPBody writer and readers #106

merged 2 commits into from
May 17, 2023

Conversation

emcfarlane
Copy link
Owner

@emcfarlane emcfarlane commented May 17, 2023

API like:

AsHTTPBodyReader(stream grpc.ServerStream, msg proto.Message) (io.Reader, error)
AsHTTPBodyWriter(stream grpc.ServerStream, msg proto.Message) (io.Writer, error)

Handles partially unmarshalling request body params excluding bytes which it gives to the caller as a reader.
Response bodies marshal the first message to the stream, (usually just ContentType), then give the caller the bytes to stream a response.

@emcfarlane emcfarlane self-assigned this May 17, 2023
@emcfarlane emcfarlane merged commit 91250e0 into main May 17, 2023
@emcfarlane emcfarlane deleted the httpbody branch May 17, 2023 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant