package http
import "github.com/uber/tchannel-go/http"
Index ¶
- func ReadRequest(call tchannel.ArgReadable) (*http.Request, error)
- func ReadResponse(call tchannel.ArgReadable) (*http.Response, error)
- func ResponseWriter(response tchannel.ArgWritable) (http.ResponseWriter, func() error)
- func WriteRequest(call tchannel.ArgWritable, req *http.Request) error
Functions ¶
func ReadRequest ¶
ReadRequest reads a http.Request from the given readers.
func ReadResponse ¶
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 ¶
WriteRequest writes a http.Request to the given writers.
Source Files ¶
- Version
- v1.34.6 (latest)
- Published
- Jan 8, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 2 days ago –
Tools for package owners.