package http

import "github.com/uber/tchannel-go/http"

Index

Functions

func ReadRequest

func ReadRequest(call tchannel.ArgReadable) (*http.Request, error)

ReadRequest reads a http.Request from the given readers.

func ReadResponse

func ReadResponse(call tchannel.ArgReadable) (*http.Response, error)

ReadResponse reads a http.Response from the given readers.

func ResponseWriter

func ResponseWriter(response tchannel.ArgWritable) (http.ResponseWriter, func() error)

ResponseWriter returns a http.ResponseWriter that will write to an underlying writer. It also returns a function that should be called once the handler has completed.

func WriteRequest

func WriteRequest(call tchannel.ArgWritable, req *http.Request) error

WriteRequest writes a http.Request to the given writers.

Source Files

buf.go request.go response.go

Version
v1.21.0
Published
Dec 14, 2020
Platform
js/wasm
Imports
5 packages
Last checked
18 hours ago

Tools for package owners.