types

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 5, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Generated by `wit-bindgen-wrpc-go` 0.9.1. DO NOT EDIT!

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrorCode

type ErrorCode = WasiErrorCode

type Fields

type Fields = []*wrpc.Tuple2[string, [][]uint8]

type Method

type Method = WasiMethod

type Request

type Request struct {
	Body          io.ReadCloser
	Trailers      wrpc.Receiver[[]*wrpc.Tuple2[string, [][]uint8]]
	Method        *wasi__http__types.Method
	PathWithQuery *string
	Scheme        *Scheme
	Authority     *string
	Headers       []*wrpc.Tuple2[string, [][]uint8]
}

func (*Request) String

func (v *Request) String() string

func (*Request) WriteToIndex

func (v *Request) WriteToIndex(w wrpc.ByteWriter) (func(wrpc.IndexWriter) error, error)

type RequestOptions

type RequestOptions struct {
	ConnectTimeout      *Duration
	FirstByteTimeout    *Duration
	BetweenBytesTimeout *Duration
}

func (*RequestOptions) String

func (v *RequestOptions) String() string

func (*RequestOptions) WriteToIndex

func (v *RequestOptions) WriteToIndex(w wrpc.ByteWriter) (func(wrpc.IndexWriter) error, error)

type Response

type Response struct {
	Body     io.ReadCloser
	Trailers wrpc.Receiver[[]*wrpc.Tuple2[string, [][]uint8]]
	Status   uint16
	Headers  []*wrpc.Tuple2[string, [][]uint8]
}

func (*Response) String

func (v *Response) String() string

func (*Response) WriteToIndex

func (v *Response) WriteToIndex(w wrpc.ByteWriter) (func(wrpc.IndexWriter) error, error)

type Scheme

type Scheme = WasiScheme

type WasiErrorCode

type WasiErrorCode = wasi__http__types.ErrorCode

type WasiMethod

type WasiMethod = wasi__http__types.Method

type WasiScheme

type WasiScheme = wasi__http__types.Scheme

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL