Skip to content

Commit 7e75c01

Browse files
committed
docs: prefer spec over protocol [skip ci]
1 parent 0511967 commit 7e75c01

File tree

16 files changed

+21
-21
lines changed

16 files changed

+21
-21
lines changed

docs/modules/handler.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ ___
135135

136136
**createHandler**<`RequestRaw`, `RequestContext`, `Context`\>(`options`): [`Handler`](handler.md#handler)<`RequestRaw`, `RequestContext`\>
137137

138-
Makes a GraphQL over HTTP Protocol compliant server handler. The handler can
138+
Makes a GraphQL over HTTP spec compliant server handler. The handler can
139139
be used with your favourite server library.
140140

141141
Beware that the handler resolves only after the whole operation completes.
@@ -212,7 +212,7 @@ ___
212212
**getAcceptableMediaType**(`acceptHeader`): [`AcceptableMediaType`](handler.md#acceptablemediatype) \| ``null``
213213

214214
Inspects the request and detects the appropriate/acceptable Media-Type
215-
looking at the `Accept` header while complying with the GraphQL over HTTP Protocol.
215+
looking at the `Accept` header while complying with the GraphQL over HTTP spec.
216216

217217
#### Parameters
218218

@@ -253,7 +253,7 @@ Creates an appropriate GraphQL over HTTP response following the provided argumen
253253
If the first argument is an `ExecutionResult`, the operation will be treated as "successful".
254254

255255
If the first argument is _any_ object without the `data` field, it will be treated as an error (as per the spec)
256-
and the response will be constructed with the help of `acceptedMediaType` complying with the GraphQL over HTTP Protocol.
256+
and the response will be constructed with the help of `acceptedMediaType` complying with the GraphQL over HTTP spec.
257257

258258
#### Parameters
259259

docs/modules/use_express.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ___
3232

3333
**createHandler**<`Context`\>(`options`): `Handler`
3434

35-
Create a GraphQL over HTTP Protocol compliant request handler for
35+
Create a GraphQL over HTTP spec compliant request handler for
3636
the express framework.
3737

3838
```js

docs/modules/use_fastify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ___
3232

3333
**createHandler**<`Context`\>(`options`): `RouteHandler`
3434

35-
Create a GraphQL over HTTP Protocol compliant request handler for
35+
Create a GraphQL over HTTP spec compliant request handler for
3636
the fastify framework.
3737

3838
```js

docs/modules/use_fetch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ___
3636

3737
**createHandler**<`Context`\>(`options`, `reqCtx?`): (`req`: `Request`) => `Promise`<`Response`\>
3838

39-
Create a GraphQL over HTTP Protocol compliant request handler for
39+
Create a GraphQL over HTTP spec compliant request handler for
4040
a fetch environment like Deno, Bun, CloudFlare Workers, Lambdas, etc.
4141

4242
You can use [@whatwg-node/server](https://github.com/ardatan/whatwg-node/tree/master/packages/server) to create a server adapter and

docs/modules/use_http.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ___
3232

3333
**createHandler**<`Context`\>(`options`): (`req`: `IncomingMessage`, `res`: `ServerResponse`) => `Promise`<`void`\>
3434

35-
Create a GraphQL over HTTP Protocol compliant request handler for
35+
Create a GraphQL over HTTP spec compliant request handler for
3636
the Node environment http module.
3737

3838
```js

docs/modules/use_http2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ___
3232

3333
**createHandler**<`Context`\>(`options`): (`req`: `Http2ServerRequest`, `res`: `Http2ServerResponse`) => `Promise`<`void`\>
3434

35-
Create a GraphQL over HTTP Protocol compliant request handler for
35+
Create a GraphQL over HTTP spec compliant request handler for
3636
the Node environment http2 module.
3737

3838
```shell

docs/modules/use_koa.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ ___
3232

3333
**createHandler**<`Context`\>(`options`): `Middleware`
3434

35-
Create a GraphQL over HTTP Protocol compliant request handler for
35+
Create a GraphQL over HTTP spec compliant request handler for
3636
the Koa framework.
3737

3838
```js

docs/modules/use_node.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ ___
3636

3737
**createHandler**<`Context`\>(`options`): (`req`: `IncomingMessage`, `res`: `ServerResponse`<`IncomingMessage`\>) => `Promise`<`void`\>
3838

39-
Create a GraphQL over HTTP Protocol compliant request handler for
39+
Create a GraphQL over HTTP spec compliant request handler for
4040
the Node environment.
4141

4242
```js
@@ -72,7 +72,7 @@ Please use [http](use_http.md#createhandler) or [http2](use_http2.md#createhandl
7272

7373
▸ (`req`, `res`): `Promise`<`void`\>
7474

75-
Create a GraphQL over HTTP Protocol compliant request handler for
75+
Create a GraphQL over HTTP spec compliant request handler for
7676
the Node environment http module.
7777

7878
```js

src/handler.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -329,7 +329,7 @@ export type Handler<RequestRaw = unknown, RequestContext = unknown> = (
329329
) => Promise<Response>;
330330

331331
/**
332-
* Makes a GraphQL over HTTP Protocol compliant server handler. The handler can
332+
* Makes a GraphQL over HTTP spec compliant server handler. The handler can
333333
* be used with your favourite server library.
334334
*
335335
* Beware that the handler resolves only after the whole operation completes.
@@ -653,7 +653,7 @@ export type AcceptableMediaType =
653653

654654
/**
655655
* Inspects the request and detects the appropriate/acceptable Media-Type
656-
* looking at the `Accept` header while complying with the GraphQL over HTTP Protocol.
656+
* looking at the `Accept` header while complying with the GraphQL over HTTP spec.
657657
*
658658
* @category Server
659659
*/
@@ -699,7 +699,7 @@ export function getAcceptableMediaType(
699699
* If the first argument is an `ExecutionResult`, the operation will be treated as "successful".
700700
*
701701
* If the first argument is _any_ object without the `data` field, it will be treated as an error (as per the spec)
702-
* and the response will be constructed with the help of `acceptedMediaType` complying with the GraphQL over HTTP Protocol.
702+
* and the response will be constructed with the help of `acceptedMediaType` complying with the GraphQL over HTTP spec.
703703
*
704704
* @category Server
705705
*/

src/use/express.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export type HandlerOptions<Context extends OperationContext = undefined> =
1414
RawHandlerOptions<Request, undefined, Context>;
1515

1616
/**
17-
* Create a GraphQL over HTTP Protocol compliant request handler for
17+
* Create a GraphQL over HTTP spec compliant request handler for
1818
* the express framework.
1919
*
2020
* ```js

0 commit comments

Comments
 (0)