Documentation ¶
Index ¶
- Variables
- func LoggerInitiator(name string) (io.Writer, error)
- type Runtime
- func (r *Runtime) BackendBodyBytesWritten() (int64, error)
- func (r *Runtime) BackendBytesWritten() (int64, error)
- func (r *Runtime) BackendHeaderBytesWritten() int64
- func (r *Runtime) CreateBackendRequest() vintage.RawHeader
- func (r *Runtime) CreateClientResponse() (vintage.RawHeader, error)
- func (r *Runtime) CreateObjectResponse(statusCode int, response string) (vintage.RawHeader, error)
- func (r *Runtime) Execute(ctx context.Context) error
- func (r *Runtime) IsIpv6() bool
- func (r *Runtime) ObjectAge() time.Duration
- func (r *Runtime) ObjectCacheable() bool
- func (r *Runtime) ObjectHits() int64
- func (r *Runtime) Proxy(ctx context.Context, backendName string) (vintage.RawHeader, error)
- func (r *Runtime) Release()
- func (r *Runtime) RequestBody() (string, error)
- func (r *Runtime) RequestBodyBase64() (string, error)
- func (r *Runtime) RequestBodyBytesRead() (int64, error)
- func (r *Runtime) RequestBytesRead() (int64, error)
- func (r *Runtime) RequestURL(req *http.Request) string
- func (r *Runtime) ResponseBody(resp *http.Response) (string, error)
- func (r *Runtime) SetResponseBody(resp *http.Response, body string)
- func (r *Runtime) SetURL(req *http.Request, dst *url.URL)
- func (r *Runtime) WriteResponse() ([3]int64, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var AclResource = core.AclResource[*Runtime]
View Source
var BackendResource = core.BackendResource[*Runtime]
View Source
var SubroutineResource = core.SubroutineResource[*Runtime]
View Source
var TableResource = core.TableResource[*Runtime]
Functions ¶
Types ¶
type Runtime ¶
type Runtime struct { *core.Runtime[*Runtime] State vintage.State Request *http.Request BackendRequest *http.Request BackendResponse *http.Response Response *http.Response ClientResponse http.ResponseWriter }
func NewRuntime ¶
func (*Runtime) BackendBodyBytesWritten ¶
Used for bereq.body_bytes_written
func (*Runtime) BackendBytesWritten ¶
Used for bereq.bytes_written
func (*Runtime) BackendHeaderBytesWritten ¶
Used for bereq.header_bytes_written
func (*Runtime) CreateBackendRequest ¶
func (*Runtime) CreateClientResponse ¶
func (*Runtime) CreateObjectResponse ¶
func (*Runtime) RequestBodyBase64 ¶
Used for req.body.base64
func (*Runtime) RequestBodyBytesRead ¶
Used for req.body_bytes_read
func (*Runtime) RequestBytesRead ¶
Used for req.bytes_read
func (*Runtime) RequestURL ¶
Used for req.url and bereq.url
func (*Runtime) ResponseBody ¶
Used for resp.response and beresp.response
func (*Runtime) SetResponseBody ¶
Used for beresp.response and resp.response setting
func (*Runtime) WriteResponse ¶
Click to show internal directories.
Click to hide internal directories.