Click or drag to resize
ServerCallContextWriteResponseHeadersAsync Method
Asynchronously sends response headers for the current call to the client. This method may only be invoked once for each call and needs to be invoked before any response messages are written. Writing the first response message implicitly sends empty response headers if WriteResponseHeadersAsync haven't been called yet.

Namespace: Grpc.Core
Assembly: Grpc.Core (in Grpc.Core.dll) Version: 0.7.0.0
Syntax
public Task WriteResponseHeadersAsync(
	Metadata responseHeaders
)

Parameters

responseHeaders
Type: Grpc.CoreMetadata
The response headers to send.

Return Value

Type: Task
The task that finished once response headers have been written.
See Also