asm 'ABpollablewasi:io/poll@0.2.0pollableBpollablewinstantwduration!wasi:clocks/monotonic-clock@0.2.0Berrorwasi:io/error@0.2.0errorB errorpollableiqlast-operation-failedclosed stream-error input-stream output-streamwasi:io/streams@0.2.0duration input-stream output-streamBduration input-stream output-streamio-errorpollableq getheadpostputdeleteconnectoptionstracepatchothersmethod qHTTPHTTPSothersscheme ksk{rrcode info-codeDNS-error-payloadk}ralert-id alert-messageTLS-alert-received-payloadkyr field-name field-sizefield-size-payloadkwkq' DNS-timeout DNS-errordestination-not-founddestination-unavailabledestination-IP-prohibiteddestination-IP-unroutableconnection-refusedconnection-terminatedconnection-timeoutconnection-read-timeoutconnection-write-timeoutconnection-limit-reachedTLS-protocol-errorTLS-certificate-errorTLS-alert-receivedHTTP-request-deniedHTTP-request-length-requiredHTTP-request-body-sizeHTTP-request-method-invalidHTTP-request-URI-invalidHTTP-request-URI-too-long HTTP-request-header-section-sizeHTTP-request-header-size!HTTP-request-trailer-section-sizeHTTP-request-trailer-sizeHTTP-response-incomplete!HTTP-response-header-section-sizeHTTP-response-header-sizeHTTP-response-body-size"HTTP-response-trailer-section-sizeHTTP-response-trailer-sizeHTTP-response-transfer-codingHTTP-response-content-codingHTTP-response-timeoutHTTP-upgrade-failedHTTP-protocol-error loop-detectedconfiguration-errorinternal-error error-codeqinvalid-syntax forbidden immutable header-errors field-keyp} field-value fieldsheaders"trailers"incoming-requestoutgoing-requestrequest-optionsresponse-outparam{ status-code)incoming-response incoming-bodyfuture-trailersoutgoing-response outgoing-bodyfuture-incoming-responsei"@1[constructor]fields2o!p3j1@entries45[static]fields.from-list6h"p!@self7name8[method]fields.get9@self7name[method]fields.has:j@self7namevalue8;[method]fields.set<@self7name;[method]fields.delete=@self7namevalue!;[method]fields.append>@self74[method]fields.entries?@self71[method]fields.clone@h%@self [method]incoming-request.methodB@self([method]incoming-request.path-with-queryCk @self[method]incoming-request.schemeE"[method]incoming-request.authorityCi#@self [method]incoming-request.headersGi,j@self [method]incoming-request.consumeJi&@headers[constructor]outgoing-requestLh&i/j@self[method]outgoing-request.bodyP@self [method]outgoing-request.methodQj@selfmethod #[method]outgoing-request.set-methodS@self([method]outgoing-request.path-with-queryT@selfpath-with-query,[method]outgoing-request.set-path-with-queryU@self[method]outgoing-request.schemeV@selfscheme#[method]outgoing-request.set-schemeW"[method]outgoing-request.authorityT@self authority&[method]outgoing-request.set-authorityX@self [method]outgoing-request.headersYi'@[constructor]request-options[h'k@self'[method]request-options.connect-timeout^@selfduration+[method]request-options.set-connect-timeout_*[method]request-options.first-byte-timeout^.[method]request-options.set-first-byte-timeout_-[method]request-options.between-bytes-timeout^1[method]request-options.set-between-bytes-timeout_i(i.j@paramresponse[static]response-outparam.setch+@self* [method]incoming-response.statuse@self![method]incoming-response.headersf@self![method]incoming-response.consumegh,ij@self[method]incoming-body.streamki-@this[static]incoming-body.finishmh-i @self![method]future-trailers.subscribepi$kjjk@selfethod]future-trailers.getv@headers[constructor]outgoing-responsewh.@self*%[method]outgoing-response.status-codey@self status-code*)[method]outgoing-response.set-status-codez@self![method]outgoing-response.headers{@self[method]outgoing-response.body|h/ij@selfethod]outgoing-body.writej@thistrailers[static]outgoing-body.finishh0@self*[method]future-incoming-response.subscribei+jjk@self$[method]future-incoming-response.gethk@errhttp-error-codewasi:http/types@0.2.0 typesABpollablewasi:io/poll@0.2.0pollableBpollablewinstantwduration!wasi:clocks/monotonic-clock@0.2.0Berrorwasi:io/error@0.2.0errorB errorpollableiqlast-operation-failedclosed stream-error input-stream output-streamwasi:io/streams@0.2.0duration input-stream output-streamB1duration input-stream output-streamio-errorpollableq getheadpostputdeleteconnectoptionstracepatchothersmethod qHTTPHTTPSothersscheme ksk{rrcode info-codeDNS-error-payloadk}ralert-id alert-messageTLS-alert-received-payloadkyr field-name field-sizefield-size-payloadkwkq' DNS-timeout DNS-errordestination-not-founddestination-unavailabledestination-IP-prohibiteddestination-IP-unroutableconnection-refusedconnection-terminatedconnection-timeoutconnection-read-timeoutconnection-write-timeoutconnection-limit-reachedTLS-protocol-errorTLS-certificate-errorTLS-alert-receivedHTTP-request-deniedHTTP-request-length-requiredHTTP-request-body-sizeHTTP-request-method-invalidHTTP-request-URI-invalidHTTP-request-URI-too-long HTTP-request-header-section-sizeHTTP-request-header-size!HTTP-request-trailer-section-sizeHTTP-request-trailer-sizeHTTP-response-incomplete!HTTP-response-header-section-sizeHTTP-response-header-sizeHTTP-response-body-size"HTTP-response-trailer-section-sizeHTTP-response-trailer-sizeHTTP-response-transfer-codingHTTP-response-content-codingHTTP-response-timeoutHTTP-upgrade-failedHTTP-protocol-error loop-detectedconfiguration-errorinternal-error error-codeqinvalid-syntax forbidden immutable header-errors field-keyp} field-value fieldsheaders"trailers"incoming-requestoutgoing-requestrequest-optionsresponse-outparam{ status-code)incoming-response incoming-bodyfuture-trailersoutgoing-response outgoing-bodyfuture-incoming-responsewasi:http/types@0.2.0 incoming-requestresponse-outparamB incoming-request response-outparamii@request response-outhandle wasi:http/incoming-handler@0.2.0 incoming-handlerABpollablewasi:io/poll@0.2.0pollableBpollablewinstantwduration!wasi:clocks/monotonic-clock@0.2.0Berrorwasi:io/error@0.2.0errorB errorpollableiqlast-operation-failedclosed stream-error input-stream output-streamwasi:io/streams@0.2.0duration input-stream output-streamB1duration input-stream output-streamio-errorpollableq getheadpostputdeleteconnectoptionstracepatchothersmethod qHTTPHTTPSothersscheme ksk{rrcode info-codeDNS-error-payloadk}ralert-id alert-messageTLS-alert-received-payloadkyr field-name field-sizefield-size-payloadkwkq' DNS-timeout DNS-errordestination-not-founddestination-unavailabledestination-IP-prohibiteddestination-IP-unroutableconnection-refusedconnection-terminatedconnection-timeoutconnection-read-timeoutconnection-write-timeoutconnection-limit-reachedTLS-protocol-errorTLS-certificate-errorTLS-alert-receivedHTTP-request-deniedHTTP-request-length-requiredHTTP-request-body-sizeHTTP-request-method-invalidHTTP-request-URI-invalidHTTP-request-URI-too-long HTTP-request-header-section-sizeHTTP-request-header-size!HTTP-request-trailer-section-sizeHTTP-request-trailer-sizeHTTP-response-incomplete!HTTP-response-header-section-sizeHTTP-response-header-sizeHTTP-response-body-size"HTTP-response-trailer-section-sizeHTTP-response-trailer-sizeHTTP-response-transfer-codingHTTP-response-content-codingHTTP-response-timeoutHTTP-upgrade-failedHTTP-protocol-error loop-detectedconfiguration-errorinternal-error error-codeqinvalid-syntax forbidden immutable header-errors field-keyp} field-value fieldsheaders"trailers"incoming-requestoutgoing-requestrequest-optionsresponse-outparam{ status-code)incoming-response incoming-bodyfuture-trailersoutgoing-response outgoing-bodyfuture-incoming-responsewasi:http/types@0.2.0 outgoing-requestrequest-optionsfuture-incoming-response error-codeB outgoing-request request-options future-incoming-response  error-codeiik ij @requestoptions handle  wasi:http/outgoing-handler@0.2.0 outgoing-handler3AABerrorh@selfs[method]error.to-debug-stringwasi:io/error@0.2.0B pollableh@self[method]pollable.ready@self[method]pollable.blockppy@inpollwasi:io/poll@0.2.0errorpollableB(errorpollableiqlast-operation-failedclosed stream-error input-stream output-streamhp}j @self lenw [method]input-stream.read "[method]input-stream.blocking-read jw@self lenw [method]input-stream.skip"[method]input-stream.blocking-skipi@self [method]input-stream.subscribeh@self ![method]output-stream.check-writej@selfcontents ethod]output-stream.write.[method]output-stream.blocking-write-and-flush@selfethod]output-stream.flush$[method]output-stream.blocking-flush@self[method]output-stream.subscribe@selflenw"[method]output-stream.write-zeroes5[method]output-stream.blocking-write-zeroes-and-flush@selfsrc lenw [method]output-stream.splice%[method]output-stream.blocking-splicewasi:io/streams@0.2.0 output-streamB output-streami@ get-stdoutwasi:cli/stdout@0.2.0B output-streami@ get-stderrwasi:cli/stderr@0.2.0 input-streamB input-streami@ get-stdinwasi:cli/stdin@0.2.0 Bpollablewinstantwduration@now@ resolutioni@whensubscribe-instant @whensubscribe-duration !wasi:clocks/monotonic-clock@0.2.0 durationB duration input-stream output-streamio-errorpollableq getheadpostputdeleteconnectoptionstracepatchothersmethod qHTTPHTTPSothersscheme ksk{rrcode info-codeDNS-error-payloadk}ralert-id alert-messageTLS-alert-received-payloadkyr field-name field-sizefield-size-payloadkwkq' DNS-timeout DNS-errordestination-not-founddestination-unavailabledestination-IP-prohibiteddestination-IP-unroutableconnection-refusedconnection-terminatedconnection-timeoutconnection-read-timeoutconnection-write-timeoutconnection-limit-reachedTLS-protocol-errorTLS-certificate-errorTLS-alert-receivedHTTP-request-deniedHTTP-request-length-requiredHTTP-request-body-sizeHTTP-request-method-invalidHTTP-request-URI-invalidHTTP-request-URI-too-long HTTP-request-header-section-sizeHTTP-request-header-size!HTTP-request-trailer-section-sizeHTTP-request-trailer-sizeHTTP-response-incomplete!HTTP-response-header-section-sizeHTTP-response-header-sizeHTTP-response-body-size"HTTP-response-trailer-section-sizeHTTP-response-trailer-sizeHTTP-response-transfer-codingHTTP-response-content-codingHTTP-response-timeoutHTTP-upgrade-failedHTTP-protocol-error loop-detectedconfiguration-errorinternal-error error-codeqinvalid-syntax forbidden immutable header-errors field-keyp} field-value fieldsheaders"trailers"incoming-requestoutgoing-requestrequest-optionsresponse-outparam{ status-code)incoming-response incoming-bodyfuture-trailersoutgoing-response outgoing-bodyfuture-incoming-responsei"@1[constructor]fields2o!p3j1@entries45[static]fields.from-list6h"p!@self7name8[method]fields.get9@self7name[method]fields.has:j@self7namevalue8;[method]fields.set<@self7name;[method]fields.delete=@self7namevalue!;[method]fields.append>@self74[method]fields.entries?@self71[method]fields.clone@h%@self [method]incoming-request.methodB@self([method]incoming-request.path-with-queryCk @self[method]incoming-request.schemeE"[method]incoming-request.authorityCi#@self [method]incoming-request.headersGi,j@self [method]incoming-request.consumeJi&@headers[constructor]outgoing-requestLh&i/j@self[method]outgoing-request.bodyP@self [method]outgoing-request.methodQj@selfmethod #[method]outgoing-request.set-methodS@self([method]outgoing-request.path-with-queryT@selfpath-with-query,[method]outgoing-request.set-path-with-queryU@self[method]outgoing-request.schemeV@selfscheme#[method]outgoing-request.set-schemeW"[method]outgoing-request.authorityT@self authority&[method]outgoing-request.set-authorityX@self [method]outgoing-request.headersYi'@[constructor]request-options[h'k@self'[method]request-options.connect-timeout^@selfduration+[method]request-options.set-connect-timeout_*[method]request-options.first-byte-timeout^.[method]request-options.set-first-byte-timeout_-[method]request-options.between-bytes-timeout^1[method]request-options.set-between-bytes-timeout_i(i.j@paramresponse[static]response-outparam.setch+@self* [method]incoming-response.statuse@self![method]incoming-response.headersf@self![method]incoming-response.consumegh,ij@self[method]incoming-body.streamki-@this[static]incoming-body.finishmh-i @self![method]future-trailers.subscribepi$kjjk@selfethod]future-trailers.getv@headers[constructor]outgoing-responsewh.@self*%[method]outgoing-response.status-codey@self status-code*)[method]outgoing-response.set-status-codez@self![method]outgoing-response.headers{@self[method]outgoing-response.body|h/ij@selfethod]outgoing-body.writej@thistrailers[static]outgoing-body.finishh0@self*[method]future-incoming-response.subscribei+jjk@self$[method]future-incoming-response.gethk@errhttp-error-codewasi:http/types@0.2.0 outgoing-requestrequest-optionsfuture-incoming-response error-codeB outgoing-requestrequest-optionsfuture-incoming-response error-codeiik ij @requestoptions handle  wasi:http/outgoing-handler@0.2.0Brsecondsw nanosecondsydatetime@now resolutionwasi:clocks/wall-clock@0.2.0wasi:http/imports@0.2.0 imports5AA!B pollableh@self[method]pollable.ready@self[method]pollable.blockppy@inpollwasi:io/poll@0.2.0pollableBpollablewinstantwduration@now@ resolutioni@whensubscribe-instant @whensubscribe-duration !wasi:clocks/monotonic-clock@0.2.0Berrorh@selfs[method]error.to-debug-stringwasi:io/error@0.2.0errorB(errorpollableiqlast-operation-failedclosed stream-error input-stream output-streamhp}j @self lenw [method]input-stream.read "[method]input-stream.blocking-read jw@self lenw [method]input-stream.skip"[method]input-stream.blocking-skipi@self [method]input-stream.subscribeh@self ![method]output-stream.check-writej@selfcontents ethod]output-stream.write.[method]output-stream.blocking-write-and-flush@selfethod]output-stream.flush$[method]output-stream.blocking-flush@self[method]output-stream.subscribe@selflenw"[method]output-stream.write-zeroes5[method]output-stream.blocking-write-zeroes-and-flush@selfsrc lenw [method]output-stream.splice%[method]output-stream.blocking-splicewasi:io/streams@0.2.0duration input-stream output-streamBduration input-stream output-streamio-errorpollableq getheadpostputdeleteconnectoptionstracepatchothersmethod qHTTPHTTPSothersscheme ksk{rrcode info-codeDNS-error-payloadk}ralert-id alert-messageTLS-alert-received-payloadkyr field-name field-sizefield-size-payloadkwkq' DNS-timeout DNS-errordestination-not-founddestination-unavailabledestination-IP-prohibiteddestination-IP-unroutableconnection-refusedconnection-terminatedconnection-timeoutconnection-read-timeoutconnection-write-timeoutconnection-limit-reachedTLS-protocol-errorTLS-certificate-errorTLS-alert-receivedHTTP-request-deniedHTTP-request-length-requiredHTTP-request-body-sizeHTTP-request-method-invalidHTTP-request-URI-invalidHTTP-request-URI-too-long HTTP-request-header-section-sizeHTTP-request-header-size!HTTP-request-trailer-section-sizeHTTP-request-trailer-sizeHTTP-response-incomplete!HTTP-response-header-section-sizeHTTP-response-header-sizeHTTP-response-body-size"HTTP-response-trailer-section-sizeHTTP-response-trailer-sizeHTTP-response-transfer-codingHTTP-response-content-codingHTTP-response-timeoutHTTP-upgrade-failedHTTP-protocol-error loop-detectedconfiguration-errorinternal-error error-codeqinvalid-syntax forbidden immutable header-errors field-keyp} field-value fieldsheaders"trailers"incoming-requestoutgoing-requestrequest-optionsresponse-outparam{ status-code)incoming-response incoming-bodyfuture-trailersoutgoing-response outgoing-bodyfuture-incoming-responsei"@1[constructor]fields2o!p3j1@entries45[static]fields.from-list6h"p!@self7name8[method]fields.get9@self7name[method]fields.has:j@self7namevalue8;[method]fields.set<@self7name;[method]fields.delete=@self7namevalue!;[method]fields.append>@self74[method]fields.entries?@self71[method]fields.clone@h%@self [method]incoming-request.methodB@self([method]incoming-request.path-with-queryCk @self[method]incoming-request.schemeE"[method]incoming-request.authorityCi#@self [method]incoming-request.headersGi,j@self [method]incoming-request.consumeJi&@headers[constructor]outgoing-requestLh&i/j@self[method]outgoing-request.bodyP@self [method]outgoing-request.methodQj@selfmethod #[method]outgoing-request.set-methodS@self([method]outgoing-request.path-with-queryT@selfpath-with-query,[method]outgoing-request.set-path-with-queryU@self[method]outgoing-request.schemeV@selfscheme#[method]outgoing-request.set-schemeW"[method]outgoing-request.authorityT@self authority&[method]outgoing-request.set-authorityX@self [method]outgoing-request.headersYi'@[constructor]request-options[h'k@self'[method]request-options.connect-timeout^@selfduration+[method]request-options.set-connect-timeout_*[method]request-options.first-byte-timeout^.[method]request-options.set-first-byte-timeout_-[method]request-options.between-bytes-timeout^1[method]request-options.set-between-bytes-timeout_i(i.j@paramresponse[static]response-outparam.setch+@self* [method]incoming-response.statuse@self![method]incoming-response.headersf@self![method]incoming-response.consumegh,ij@self[method]incoming-body.streamki-@this[static]incoming-body.finishmh-i @self![method]future-trailers.subscribepi$kjjk@selfethod]future-trailers.getv@headers[constructor]outgoing-responsewh.@self*%[method]outgoing-response.status-codey@self status-code*)[method]outgoing-response.set-status-codez@self![method]outgoing-response.headers{@self[method]outgoing-response.body|h/ij@selfethod]outgoing-body.writej@thistrailers[static]outgoing-body.finishh0@self*[method]future-incoming-response.subscribei+jjk@self$[method]future-incoming-response.gethk@errhttp-error-codewasi:http/types@0.2.0 B output-streami@ get-stdoutwasi:cli/stdout@0.2.0 B output-streami@ get-stderrwasi:cli/stderr@0.2.0 B input-streami@ get-stdinwasi:cli/stdin@0.2.0 outgoing-requestrequest-optionsfuture-incoming-response error-codeB outgoing-requestrequest-optionsfuture-incoming-response error-codeiik ij @requestoptions handle  wasi:http/outgoing-handler@0.2.0Brsecondsw nanosecondsydatetime@now resolutionwasi:clocks/wall-clock@0.2.0incoming-requestresponse-outparamBincoming-requestresponse-outparamii@request response-outhandle wasi:http/incoming-handler@0.2.0wasi:http/proxy@0.2.0 proxyߥ package-docs{"worlds":{"imports":{"docs":"The `wasi:http/imports` world imports all the APIs for HTTP proxies.\nIt is intended to be `include`d in other worlds."},"proxy":{"docs":"The `wasi:http/proxy` world captures a widely-implementable intersection of\nhosts that includes HTTP forward and reverse proxies. Components targeting\nthis world may concurrently stream in and out any number of incoming and\noutgoing HTTP requests."}},"interfaces":{"types":{"docs":"This interface defines all of the types and methods for implementing\nHTTP Requests and Responses, both incoming and outgoing, as well as\ntheir headers, trailers, and bodies.","funcs":{"http-error-code":"Attempts to extract a http-related `error` from the wasi:io `error`\nprovided.\n\nStream operations which return\n`wasi:io/stream/stream-error::last-operation-failed` have a payload of\ntype `wasi:io/error/error` with more information about the operation\nthat failed. This payload can be passed through to this function to see\nif there's http-related information about the error to return.\n\nNote that this function is fallible because not all io-errors are\nhttp-related errors.","[constructor]fields":"Construct an empty HTTP Fields.\n\nThe resulting `fields` is mutable.","[static]fields.from-list":"Construct an HTTP Fields.\n\nThe resulting `fields` is mutable.\n\nThe list represents each key-value pair in the Fields. Keys\nwhich have multiple values are represented by multiple entries in this\nlist with the same key.\n\nThe tuple is a pair of the field key, represented as a string, and\nValue, represented as a list of bytes.\n\nAn error result will be returned if any `field-key` or `field-value` is\nsyntactically invalid, or if a field is forbidden.","[method]fields.get":"Get all of the values corresponding to a key. If the key is not present\nin this `fields` or is syntactically invalid, an empty list is returned.\nHowever, if the key is present but empty, this is represented by a list\nwith one or more empty field-values present.","[method]fields.has":"Returns `true` when the key is present in this `fields`. If the key is\nsyntactically invalid, `false` is returned.","[method]fields.set":"Set all of the values for a key. Clears any existing values for that\nkey, if they have been set.\n\nFails with `header-error.immutable` if the `fields` are immutable.\n\nFails with `header-error.invalid-syntax` if the `field-key` or any of\nthe `field-value`s are syntactically invalid.","[method]fields.delete":"Delete all values for a key. Does nothing if no values for the key\nexist.\n\nFails with `header-error.immutable` if the `fields` are immutable.\n\nFails with `header-error.invalid-syntax` if the `field-key` is\nsyntactically invalid.","[method]fields.append":"Append a value for a key. Does not change or delete any existing\nvalues for that key.\n\nFails with `header-error.immutable` if the `fields` are immutable.\n\nFails with `header-error.invalid-syntax` if the `field-key` or\n`field-value` are syntactically invalid.","[method]fields.entries":"Retrieve the full set of keys and values in the Fields. Like the\nconstructor, the list represents each key-value pair.\n\nThe outer list represents each key-value pair in the Fields. Keys\nwhich have multiple values are represented by multiple entries in this\nlist with the same key.","[method]fields.clone":"Make a deep copy of the Fields. Equivelant in behavior to calling the\n`fields` constructor on the return value of `entries`. The resulting\n`fields` is mutable.","[method]incoming-request.method":"Returns the method of the incoming request.","[method]incoming-request.path-with-query":"Returns the path with query parameters from the request, as a string.","[method]incoming-request.scheme":"Returns the protocol scheme from the request.","[method]incoming-request.authority":"Returns the authority from the request, if it was present.","[method]incoming-request.headers":"Get the `headers` associated with the request.\n\nThe returned `headers` resource is immutable: `set`, `append`, and\n`delete` operations will fail with `header-error.immutable`.\n\nThe `headers` returned are a child resource: it must be dropped before\nthe parent `incoming-request` is dropped. Dropping this\n`incoming-request` before all children are dropped will trap.","[method]incoming-request.consume":"Gives the `incoming-body` associated with this request. Will only\nreturn success at most once, and subsequent calls will return error.","[constructor]outgoing-request":"Construct a new `outgoing-request` with a default `method` of `GET`, and\n`none` values for `path-with-query`, `scheme`, and `authority`.\n\n* `headers` is the HTTP Headers for the Request.\n\nIt is possible to construct, or manipulate with the accessor functions\nbelow, an `outgoing-request` with an invalid combination of `scheme`\nand `authority`, or `headers` which are not permitted to be sent.\nIt is the obligation of the `outgoing-handler.handle` implementation\nto reject invalid constructions of `outgoing-request`.","[method]outgoing-request.body":"Returns the resource corresponding to the outgoing Body for this\nRequest.\n\nReturns success on the first call: the `outgoing-body` resource for\nthis `outgoing-request` can be retrieved at most once. Subsequent\ncalls will return error.","[method]outgoing-request.method":"Get the Method for the Request.","[method]outgoing-request.set-method":"Set the Method for the Request. Fails if the string present in a\n`method.other` argument is not a syntactically valid method.","[method]outgoing-request.path-with-query":"Get the combination of the HTTP Path and Query for the Request.\nWhen `none`, this represents an empty Path and empty Query.","[method]outgoing-request.set-path-with-query":"Set the combination of the HTTP Path and Query for the Request.\nWhen `none`, this represents an empty Path and empty Query. Fails is the\nstring given is not a syntactically valid path and query uri component.","[method]outgoing-request.scheme":"Get the HTTP Related Scheme for the Request. When `none`, the\nimplementation may choose an appropriate default scheme.","[method]outgoing-request.set-scheme":"Set the HTTP Related Scheme for the Request. When `none`, the\nimplementation may choose an appropriate default scheme. Fails if the\nstring given is not a syntactically valid uri scheme.","[method]outgoing-request.authority":"Get the HTTP Authority for the Request. A value of `none` may be used\nwith Related Schemes which do not require an Authority. The HTTP and\nHTTPS schemes always require an authority.","[method]outgoing-request.set-authority":"Set the HTTP Authority for the Request. A value of `none` may be used\nwith Related Schemes which do not require an Authority. The HTTP and\nHTTPS schemes always require an authority. Fails if the string given is\nnot a syntactically valid uri authority.","[method]outgoing-request.headers":"Get the headers associated with the Request.\n\nThe returned `headers` resource is immutable: `set`, `append`, and\n`delete` operations will fail with `header-error.immutable`.\n\nThis headers resource is a child: it must be dropped before the parent\n`outgoing-request` is dropped, or its ownership is transfered to\nanother component by e.g. `outgoing-handler.handle`.","[constructor]request-options":"Construct a default `request-options` value.","[method]request-options.connect-timeout":"The timeout for the initial connect to the HTTP Server.","[method]request-options.set-connect-timeout":"Set the timeout for the initial connect to the HTTP Server. An error\nreturn value indicates that this timeout is not supported.","[method]request-options.first-byte-timeout":"The timeout for receiving the first byte of the Response body.","[method]request-options.set-first-byte-timeout":"Set the timeout for receiving the first byte of the Response body. An\nerror return value indicates that this timeout is not supported.","[method]request-options.between-bytes-timeout":"The timeout for receiving subsequent chunks of bytes in the Response\nbody stream.","[method]request-options.set-between-bytes-timeout":"Set the timeout for receiving subsequent chunks of bytes in the Response\nbody stream. An error return value indicates that this timeout is not\nsupported.","[static]response-outparam.set":"Set the value of the `response-outparam` to either send a response,\nor indicate an error.\n\nThis method consumes the `response-outparam` to ensure that it is\ncalled at most once. If it is never called, the implementation\nwill respond with an error.\n\nThe user may provide an `error` to `response` to allow the\nimplementation determine how to respond with an HTTP error response.","[method]incoming-response.status":"Returns the status code from the incoming response.","[method]incoming-response.headers":"Returns the headers from the incoming response.\n\nThe returned `headers` resource is immutable: `set`, `append`, and\n`delete` operations will fail with `header-error.immutable`.\n\nThis headers resource is a child: it must be dropped before the parent\n`incoming-response` is dropped.","[method]incoming-response.consume":"Returns the incoming body. May be called at most once. Returns error\nif called additional times.","[method]incoming-body.stream":"Returns the contents of the body, as a stream of bytes.\n\nReturns success on first call: the stream representing the contents\ncan be retrieved at most once. Subsequent calls will return error.\n\nThe returned `input-stream` resource is a child: it must be dropped\nbefore the parent `incoming-body` is dropped, or consumed by\n`incoming-body.finish`.\n\nThis invariant ensures that the implementation can determine whether\nthe user is consuming the contents of the body, waiting on the\n`future-trailers` to be ready, or neither. This allows for network\nbackpressure is to be applied when the user is consuming the body,\nand for that backpressure to not inhibit delivery of the trailers if\nthe user does not read the entire body.","[static]incoming-body.finish":"Takes ownership of `incoming-body`, and returns a `future-trailers`.\nThis function will trap if the `input-stream` child is still alive.","[method]future-trailers.subscribe":"Returns a pollable which becomes ready when either the trailers have\nbeen received, or an error has occured. When this pollable is ready,\nthe `get` method will return `some`.","[method]future-trailers.get":"Returns the contents of the trailers, or an error which occured,\nonce the future is ready.\n\nThe outer `option` represents future readiness. Users can wait on this\n`option` to become `some` using the `subscribe` method.\n\nThe outer `result` is used to retrieve the trailers or error at most\nonce. It will be success on the first call in which the outer option\nis `some`, and error on subsequent calls.\n\nThe inner `result` represents that either the HTTP Request or Response\nbody, as well as any trailers, were received successfully, or that an\nerror occured receiving them. The optional `trailers` indicates whether\nor not trailers were present in the body.\n\nWhen some `trailers` are returned by this method, the `trailers`\nresource is immutable, and a child. Use of the `set`, `append`, or\n`delete` methods will return an error, and the resource must be\ndropped before the parent `future-trailers` is dropped.","[constructor]outgoing-response":"Construct an `outgoing-response`, with a default `status-code` of `200`.\nIf a different `status-code` is needed, it must be set via the\n`set-status-code` method.\n\n* `headers` is the HTTP Headers for the Response.","[method]outgoing-response.status-code":"Get the HTTP Status Code for the Response.","[method]outgoing-response.set-status-code":"Set the HTTP Status Code for the Response. Fails if the status-code\ngiven is not a valid http status code.","[method]outgoing-response.headers":"Get the headers associated with the Request.\n\nThe returned `headers` resource is immutable: `set`, `append`, and\n`delete` operations will fail with `header-error.immutable`.\n\nThis headers resource is a child: it must be dropped before the parent\n`outgoing-request` is dropped, or its ownership is transfered to\nanother component by e.g. `outgoing-handler.handle`.","[method]outgoing-response.body":"Returns the resource corresponding to the outgoing Body for this Response.\n\nReturns success on the first call: the `outgoing-body` resource for\nthis `outgoing-response` can be retrieved at most once. Subsequent\ncalls will return error.","[method]outgoing-body.write":"Returns a stream for writing the body contents.\n\nThe returned `output-stream` is a child resource: it must be dropped\nbefore the parent `outgoing-body` resource is dropped (or finished),\notherwise the `outgoing-body` drop or `finish` will trap.\n\nReturns success on the first call: the `output-stream` resource for\nthis `outgoing-body` may be retrieved at most once. Subsequent calls\nwill return error.","[static]outgoing-body.finish":"Finalize an outgoing body, optionally providing trailers. This must be\ncalled to signal that the response is complete. If the `outgoing-body`\nis dropped without calling `outgoing-body.finalize`, the implementation\nshould treat the body as corrupted.\n\nFails if the body's `outgoing-request` or `outgoing-response` was\nconstructed with a Content-Length header, and the contents written\nto the body (via `write`) does not match the value given in the\nContent-Length.","[method]future-incoming-response.subscribe":"Returns a pollable which becomes ready when either the Response has\nbeen received, or an error has occured. When this pollable is ready,\nthe `get` method will return `some`.","[method]future-incoming-response.get":"Returns the incoming HTTP Response, or an error, once one is ready.\n\nThe outer `option` represents future readiness. Users can wait on this\n`option` to become `some` using the `subscribe` method.\n\nThe outer `result` is used to retrieve the response or error at most\nonce. It will be success on the first call in which the outer option\nis `some`, and error on subsequent calls.\n\nThe inner `result` represents that either the incoming HTTP Response\nstatus and headers have recieved successfully, or that an error\noccured. Errors may also occur while consuming the response body,\nbut those will be reported by the `incoming-body` and its\n`output-stream` child."},"types":{"method":{"docs":"This type corresponds to HTTP standard Methods."},"scheme":{"docs":"This type corresponds to HTTP standard Related Schemes."},"DNS-error-payload":{"docs":"Defines the case payload type for `DNS-error` above:"},"TLS-alert-received-payload":{"docs":"Defines the case payload type for `TLS-alert-received` above:"},"field-size-payload":{"docs":"Defines the case payload type for `HTTP-response-{header,trailer}-size` above:"},"error-code":{"docs":"These cases are inspired by the IANA HTTP Proxy Error Types:\nhttps://www.iana.org/assignments/http-proxy-status/http-proxy-status.xhtml#table-http-proxy-error-types","items":{"internal-error":"This is a catch-all error for anything that doesn't fit cleanly into a\nmore specific case. It also includes an optional string for an\nunstructured description of the error. Users should not depend on the\nstring for diagnosing errors, as it's not required to be consistent\nbetween implementations."}},"header-error":{"docs":"This type enumerates the different kinds of errors that may occur when\nsetting or appending to a `fields` resource.","items":{"invalid-syntax":"This error indicates that a `field-key` or `field-value` was\nsyntactically invalid when used with an operation that sets headers in a\n`fields`.","forbidden":"This error indicates that a forbidden `field-key` was used when trying\nto set a header in a `fields`.","immutable":"This error indicates that the operation on the `fields` was not\npermitted because the fields are immutable."}},"field-key":{"docs":"Field keys are always strings."},"field-value":{"docs":"Field values should always be ASCII strings. However, in\nreality, HTTP implementations often have to interpret malformed values,\nso they are provided as a list of bytes."},"fields":{"docs":"This following block defines the `fields` resource which corresponds to\nHTTP standard Fields. Fields are a common representation used for both\nHeaders and Trailers.\n\nA `fields` may be mutable or immutable. A `fields` created using the\nconstructor, `from-list`, or `clone` will be mutable, but a `fields`\nresource given by other means (including, but not limited to,\n`incoming-request.headers`, `outgoing-request.headers`) might be be\nimmutable. In an immutable fields, the `set`, `append`, and `delete`\noperations will fail with `header-error.immutable`."},"headers":{"docs":"Headers is an alias for Fields."},"trailers":{"docs":"Trailers is an alias for Fields."},"incoming-request":{"docs":"Represents an incoming HTTP Request."},"outgoing-request":{"docs":"Represents an outgoing HTTP Request."},"request-options":{"docs":"Parameters for making an HTTP Request. Each of these parameters is\ncurrently an optional timeout applicable to the transport layer of the\nHTTP protocol.\n\nThese timeouts are separate from any the user may use to bound a\nblocking call to `wasi:io/poll.poll`."},"response-outparam":{"docs":"Represents the ability to send an HTTP Response.\n\nThis resource is used by the `wasi:http/incoming-handler` interface to\nallow a Response to be sent corresponding to the Request provided as the\nother argument to `incoming-handler.handle`."},"status-code":{"docs":"This type corresponds to the HTTP standard Status Code."},"incoming-response":{"docs":"Represents an incoming HTTP Response."},"incoming-body":{"docs":"Represents an incoming HTTP Request or Response's Body.\n\nA body has both its contents - a stream of bytes - and a (possibly\nempty) set of trailers, indicating that the full contents of the\nbody have been received. This resource represents the contents as\nan `input-stream` and the delivery of trailers as a `future-trailers`,\nand ensures that the user of this interface may only be consuming either\nthe body contents or waiting on trailers at any given time."},"future-trailers":{"docs":"Represents a future which may eventaully return trailers, or an error.\n\nIn the case that the incoming HTTP Request or Response did not have any\ntrailers, this future will resolve to the empty set of trailers once the\ncomplete Request or Response body has been received."},"outgoing-response":{"docs":"Represents an outgoing HTTP Response."},"outgoing-body":{"docs":"Represents an outgoing HTTP Request or Response's Body.\n\nA body has both its contents - a stream of bytes - and a (possibly\nempty) set of trailers, inducating the full contents of the body\nhave been sent. This resource represents the contents as an\n`output-stream` child resource, and the completion of the body (with\noptional trailers) with a static function that consumes the\n`outgoing-body` resource, and ensures that the user of this interface\nmay not write to the body contents after the body has been finished.\n\nIf the user code drops this resource, as opposed to calling the static\nmethod `finish`, the implementation should treat the body as incomplete,\nand that an error has occured. The implementation should propogate this\nerror to the HTTP protocol by whatever means it has available,\nincluding: corrupting the body on the wire, aborting the associated\nRequest, or sending a late status code for the Response."},"future-incoming-response":{"docs":"Represents a future which may eventaully return an incoming HTTP\nResponse, or an error.\n\nThis resource is returned by the `wasi:http/outgoing-handler` interface to\nprovide the HTTP Response corresponding to the sent Request."}}},"incoming-handler":{"docs":"This interface defines a handler of incoming HTTP Requests. It should\nbe exported by components which can respond to HTTP Requests.","funcs":{"handle":"This function is invoked with an incoming HTTP Request, and a resource\n`response-outparam` which provides the capability to reply with an HTTP\nResponse. The response is sent by calling the `response-outparam.set`\nmethod, which allows execution to continue after the response has been\nsent. This enables both streaming to the response body, and performing other\nwork.\n\nThe implementor of this function must write a response to the\n`response-outparam` before returning, or else the caller will respond\nwith an error on its behalf."}},"outgoing-handler":{"docs":"This interface defines a handler of outgoing HTTP Requests. It should be\nimported by components which wish to make HTTP Requests.","funcs":{"handle":"This function is invoked with an outgoing HTTP Request, and it returns\na resource `future-incoming-response` which represents an HTTP Response\nwhich may arrive in the future.\n\nThe `options` argument accepts optional parameters for the HTTP\nprotocol's transport layer.\n\nThis function may return an error if the `outgoing-request` is invalid\nor not allowed to be made. Otherwise, protocol errors are reported\nthrough the `future-incoming-response`."}}}}N producers processed-by wit-component0.200.0wit0.7.0 (f98de99 2024-02-27)