getOrpcCallRequest
Encodes a call of the procedure as described by the oRPC RPC protocol, for any base
url
- the client url of a
request or the url of a socket. GET sends the input in the
dataquery param. Files and urls over the length limit fall back to POST, the same as theRPCLinkof oRPC.
Import
import { getOrpcCallRequest } from "@hyper-fetch/orpc"
Source
Package
Parameters
getOrpcCallRequest(__namedParameters: { endpoint: string; headers: HeadersInit; method: POST | GET; payload: unknown; queryParams: unknown; serializer: StandardRPCSerializer; url: string })
Parameters
| Name | Type | Description |
|---|---|---|
| __namedParameters | |
Returns
OrpcHttpRequestType

