---
name: "ns_adp_mimetype"
section: "3aolserver"
platform: "linux"
package: "aolserver4-dev"
version: "4.5.1-18.1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ns_adp_mimetype"
---

# ns\_adp\_mimetype(3aolserver)

Set output mimetype.

```

```

## NAME

ns\_adp\_mimetype - Set output mimetype.

## SYNOPSIS

```
ns_adp_mimetype ?mimetype?
```

```

```

## DESCRIPTION

This command can be used to query the output mimetype for the HTTP connection of an ADP.  If the optional *mimetype* argument is specified, it is used to first set the mimetype to the given value.  Updating the mimetype will invoke code to adjust output encoding if necessary, see **Ns\_ConnSetType** for details.

## SEE ALSO

ns\_adp(n), ns\_adp\_flush(n), ns\_adp\_close(n), Ns\_ConnSetType(3)

## KEYWORDS

ADP, dynamic pages, buffer, mimetype, encoding
