Documentation
¶
Index ¶
- func IsMethodLine(line string) bool
- type Builder
- func (b *Builder) EnsureRequest() *restfile.GRPCRequest
- func (b *Builder) Finalize(existingMime string) (*restfile.GRPCRequest, restfile.BodySource, string, bool)
- func (b *Builder) HandleBodyLine(line string, forceInline bool) bool
- func (b *Builder) HandleDirective(name directive.Name, rest string) (handled, reset bool, err error)
- func (b *Builder) SetTarget(target string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMethodLine ¶
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func (*Builder) EnsureRequest ¶
func (b *Builder) EnsureRequest() *restfile.GRPCRequest
func (*Builder) Finalize ¶
func (b *Builder) Finalize( existingMime string, ) (*restfile.GRPCRequest, restfile.BodySource, string, bool)
func (*Builder) HandleBodyLine ¶
func (*Builder) HandleDirective ¶
func (b *Builder) HandleDirective(name directive.Name, rest string) (handled, reset bool, err error)
HandleDirective applies a gRPC directive. A directive with a missing value is left unclaimed because claiming it could make gRPC hide a body intended for another protocol. gRPC has no reset directive, so reset is always false.
Click to show internal directories.
Click to hide internal directories.