projects
/
mdref
/
mdref-http
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
drop v2
[mdref/mdref-http]
/
http
/
Env
/
negotiateContentType.md
diff --git
a/http/Env/negotiateContentType.md
b/http/Env/negotiateContentType.md
index 510e33f176630342ddc20bc6a78af521c15d1b53..d5ee50094e8010b73bf39ae0d7cb4dca2176534d 100644
(file)
--- a/
http/Env/negotiateContentType.md
+++ b/
http/Env/negotiateContentType.md
@@
-2,24
+2,24
@@
Negotiate the client's preferred MIME content type.
Negotiate the client's preferred MIME content type.
-> **
*NOTE:*
** The first elemement of $supported content types serves as a default if no content-type matches.
+> **
Note:
** The first elemement of $supported content types serves as a default if no content-type matches.
## Params:
## Params:
-*
```array $supported```
+*
array $supported
List of supported MIME content types.
List of supported MIME content types.
-* Optional reference
```array &$result```
+* Optional reference
array &$result
Out parameter recording negotiation results.
## Returns:
Out parameter recording negotiation results.
## Returns:
-*
```NULL```
, if negotiation fails.
-*
```string```
, the negotiated content type.
+*
NULL
, if negotiation fails.
+*
string
, the negotiated content type.
## Example:
## Example:
-A client indicates his accepted MIME content types by sending an
```Accept```
-header. The static
```http\Env```
class provides a facility to negotiate the
+A client indicates his accepted MIME content types by sending an
Accept
+header. The static
http\Env
class provides a facility to negotiate the
client's preferred content type:
<?php
client's preferred content type:
<?php